joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40453c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4046f8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40459d
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404714
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40460f
xor eax, eax
push ebp
push 0x404608
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00404394
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4045f1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404734
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40460f
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4046f0
cmp byte [ebp - 0xd], 0
jne 0x404651
cmp byte [ebp - 0x12], 0
je 0x4046f0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40466a
dec ebx
cmp byte [ebx], 0x2e
je 0x404679
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404669
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4046f0
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4046a6
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4046f0
cmp byte [ebp - 0xd], 0
je 0x4046f0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4046f0
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40705c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x407095
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403410
jmp 0x40709e
mov eax, ebx
mov edx, esi
call fcn.0040337c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4070a8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4070c9
mov al, byte [esp]
jmp 0x4070cb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c008
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x40c01a
add esp, 0xfffffff0
call fcn.00402b3c
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00402a0c
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], esi
push 0x40
push 0x3000
push 0xc
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov word [ecx], 0x6858
mov dword [ecx + 2], eax
mov word [ecx + 6], 0xe950
mov eax, 0x40c0c0
sub eax, ecx
sub eax, 0xc
mov dword [ecx + 8], eax
mov eax, dword [ebp - 4]
test bl, bl
je 0x40c07e
call fcn.00402b94
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x40c3fc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403738
xor eax, eax
push ebp
push 0x40c505
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040337c
jmp 0x40c43d
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x40c51c
call fcn.004035d0
mov eax, dword [ebp - 4]
call fcn.00403584
cmp eax, 8
jl 0x40c42d
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x154], eax
mov byte [ebp - 0x150], 0xb
lea ecx, [ebp - 0x154]
mov edx, 0x40c520
lea eax, [ebp - 0x4c]
call fcn.00406ecc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x40c4ef
xor eax, eax
push ebp
push 0x40c4e8
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], pe_nt_image_headers32
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14c]
push eax
push 0
push 0
push 0x40c558
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40c4d1
mov eax, ebx
lea edx, [ebp - 0x14c]
mov ecx, pe_nt_image_headers32
call fcn.00403558
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c4ef
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c50c
lea eax, [ebp - 4]
call fcn.00403328
ret
Function at 0x40d278
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403738
xor eax, eax
push ebp
push 0x40d381
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040337c
jmp 0x40d2b9
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x40d398
call fcn.004035d0
mov eax, dword [ebp - 4]
call fcn.00403584
cmp eax, 8
jl 0x40d2a9
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x154], eax
mov byte [ebp - 0x150], 0xb
lea ecx, [ebp - 0x154]
mov edx, 0x40d39c
lea eax, [ebp - 0x4c]
call fcn.00406ecc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x40d36b
xor eax, eax
push ebp
push 0x40d364
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], pe_nt_image_headers32
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14c]
push eax
push 0
push 0
push 0x40d3d4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40d34d
mov eax, ebx
lea edx, [ebp - 0x14c]
mov ecx, pe_nt_image_headers32
call fcn.00403558
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d36b
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d388
lea eax, [ebp - 4]
call fcn.00403328
ret
Function at 0x4013b0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x40f018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
lea eax, [edi + 0x14]
xor ecx, ecx
lea esp, [esp]
movzx edx, byte [eax]
mov byte [ebp + ecx - 0xc], dl
movzx edx, byte [eax + 1]
mov byte [ebp + ecx - 0xb], dl
movzx edx, byte [eax + 2]
mov byte [ebp + ecx - 0xa], dl
movzx edx, byte [eax + 3]
mov byte [ebp + ecx - 9], dl
add ecx, 4
add eax, 4
cmp ecx, 8
jb 0x4013d0
mov ecx, dword [edi + 0x14]
shr ecx, 3
and ecx, 0x3f
mov eax, 0x38
cmp ecx, 0x38
jb 0x401412
mov eax, 0x78
lea esi, [edi + 0x5c]
sub eax, ecx
push esi
call fcn.00401300
lea eax, [ebp - 0xc]
push eax
mov eax, 8
call fcn.00401300
lea eax, [edi + 4]
lea ecx, [ebx + 1]
mov edx, 4
movzx ebx, byte [eax]
mov byte [ecx - 1], bl
movzx ebx, byte [eax + 1]
mov byte [ecx], bl
movzx ebx, byte [eax + 2]
mov byte [ecx + 1], bl
movzx ebx, byte [eax + 3]
mov byte [ecx + 2], bl
add eax, 4
add ecx, 4
dec edx
jne 0x401436
push 0x9c
push edx
push edi
call sub.MSVCR100.dll_memset
push 0x40
push 0
push esi
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 4], 0x67452301
mov dword [edi + 8], 0xefcdab89
mov dword [edi + 0xc], 0x98badcfe
mov dword [edi + 0x10], 0x10325476
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp - 4]
add esp, 0x18
pop edi
mov byte [esi], 0x80
pop esi
xor ecx, ebp
pop ebx
call fcn.00409024
mov esp, ebp
pop ebp
ret
Function at 0x4030e0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a1a6
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x40f018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x113]
push ebx
push eax
mov byte [ebp - 0x114], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
lea ecx, [ebp - 0x114]
push ecx
push ebx
push ebx
push 0x1c
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x40318c
cmp byte [ebp - 0x114], bl
je 0x40318c
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
jmp 0x403170
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403170
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x114]
lea esi, [ebp - 0x130]
call fcn.00407e20
push str.update
lea edx, [ebp - 0x130]
push edx
lea eax, [ebp - 0x14c]
push eax
call fcn.004088c0
add esp, 0xc
mov edi, eax
lea esi, [ebp - 0x130]
mov byte [ebp - 4], 1
call fcn.004070d0
mov esi, 0x10
mov byte [ebp - 4], bl
cmp dword [ebp - 0x138], esi
jb 0x4031d8
mov ecx, dword [ebp - 0x14c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea edx, [ebp - 0x130]
or edi, 0xffffffff
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 0x14c], bl
push edx
mov eax, edi
xor ebx, ebx
mov ecx, 0x40f4f4
mov dword [ebp - 0x138], 0xf
call fcn.00407140
mov eax, dword [ebp - 0x130]
cmp dword [ebp - 0x11c], esi
jae 0x40321a
lea eax, [ebp - 0x130]
push 0
push eax
call dword [sym.imp.MSVCR100.dll__access]
add esp, 8
cmp eax, edi
jne 0x40327b
mov eax, dword [ebp - 0x130]
cmp dword [ebp - 0x11c], esi
jae 0x40323e
lea eax, [ebp - 0x130]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 4], edi
test eax, eax
je 0x40325f
cmp dword [ebp - 0x11c], esi
jb 0x403296
mov eax, dword [ebp - 0x130]
push eax
jmp 0x40328d
cmp dword [ebp - 0x11c], esi
jb 0x403277
mov ecx, dword [ebp - 0x130]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor al, al
jmp 0x403298
mov dword [ebp - 4], edi
cmp dword [ebp - 0x11c], esi
jb 0x403296
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409024
mov esp, ebp
pop ebp
ret
Function at 0x407710
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409df8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x40f018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x4078b7
cmp byte [ebx + 0x49], 0
je 0x4078b7
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x4078a4
lea esi, [ebp - 0x2c]
call fcn.00407070
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x407783
lea edx, [ebp - 0x2c]
mov eax, edx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, edx
push ecx
mov ecx, dword [ebx + 0x44]
push eax
lea eax, [ebx + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x4077c2
dec eax
je 0x4077c6
sub eax, 2
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x2c]
je 0x4078b2
call fcn.00409000
xor al, al
jmp 0x4078b9
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4077d6
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x407804
cmp edi, 0x10
jae 0x4077e5
lea eax, [ebp - 0x2c]
mov edx, dword [ebx + 0x54]
push edx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x407895
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x4078a8
test esi, esi
jne 0x407777
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x4078d4
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x4078d4
cmp edi, esi
jae 0x40787e
push ecx
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.004083d0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x407777
mov ecx, eax
cmp edi, 0x10
jae 0x40785a
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x407875
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x407771
test esi, esi
jne 0x407850
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x40788d
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x407771
lea esi, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00409000
xor al, al
jmp 0x4078b9
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.00409000
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409024
mov esp, ebp
pop ebp
ret
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3
Function at 0x407a40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409df8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x40f018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x407bf2
cmp byte [ebx + 0x4a], 0
je 0x407bf2
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffff
mov ecx, ebx
call edx
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
je 0x407bdf
lea esi, [ebp - 0x2c]
call fcn.00407070
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x407abe
lea edx, [ebp - 0x2c]
mov eax, edx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, edx
push ecx
mov ecx, dword [ebx + 0x44]
push eax
lea eax, [ebx + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_wchar_t__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x407afd
dec eax
je 0x407b01
sub eax, 2
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x2c]
je 0x407bed
call fcn.00409000
xor al, al
jmp 0x407bf4
mov byte [ebx + 0x4a], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x407b11
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x407b3f
cmp edi, 0x10
jae 0x407b20
lea eax, [ebp - 0x2c]
mov edx, dword [ebx + 0x54]
push edx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x407bd0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x4a], 0
je 0x407be3
test esi, esi
jne 0x407ab2
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x407c0f
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x407c0f
cmp edi, esi
jae 0x407bb9
push ecx
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.004083d0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x407ab2
mov ecx, eax
cmp edi, 0x10
jae 0x407b95
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x407bb0
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x407aac
test esi, esi
jne 0x407b8b
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x407bc8
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x407aac
lea esi, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00409000
xor al, al
jmp 0x407bf4
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.00409000
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409024
mov esp, ebp
pop ebp
ret
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3

Function at 0x409024
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40f018]
jne 0x40902e
repz ret
jmp fcn.0040943c
Function at 0x40d8ee
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x401183
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x40118d
repz ret
jmp fcn.00401343

Function at 0x403413
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004022f1
and dword [ebp - 4], 0
cmp dword [0x40b568], 0
mov ebx, eax
jne 0x4034c4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x403575
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x403575
push eax
call fcn.0040227f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b568], eax
call esi
push eax
call fcn.0040227f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b56c], eax
call esi
push eax
call fcn.0040227f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b570], eax
call esi
push eax
call fcn.0040227f
pop ecx
mov dword [0x40b578], eax
test eax, eax
je 0x4034c4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040227f
pop ecx
mov dword [0x40b574], eax
mov eax, dword [0x40b574]
cmp eax, ebx
je 0x40351c
cmp dword [0x40b578], ebx
je 0x40351c
push eax
call fcn.004022fa
push dword [0x40b578]
mov esi, eax
call fcn.004022fa
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40351c
test edi, edi
je 0x40351c
call esi
test eax, eax
je 0x403513
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x403513
test byte [ebp - 0xc], 1
jne 0x40351c
or dword [ebp + 0x10], 0x200000
jmp 0x403555
mov eax, dword [0x40b56c]
cmp eax, ebx
je 0x403555
push eax
call fcn.004022fa
pop ecx
test eax, eax
je 0x403555
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x403555
mov eax, dword [0x40b570]
cmp eax, ebx
je 0x403555
push eax
call fcn.004022fa
pop ecx
test eax, eax
je 0x403555
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b568]
call fcn.004022fa
pop ecx
test eax, eax
je 0x403575
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x403577
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x7d448c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 0xf8
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x78]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
jmp 0x7d44f8
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x18]
jae 0x7d4541
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.007f7850
add esp, 8
test eax, eax
jne 0x7d453f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx + eax*2]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x7d4543
jmp 0x7d44ef
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x7e7211
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.007e12b7
add esp, 4
and eax, 0xff
test eax, eax
je 0x7e729a
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x2cc
push 0
lea eax, [ebp - 0x2cc]
push eax
call fcn.007f1ff0
add esp, 0xc
mov dword [ebp - 0x2cc], 0x10001
lea ecx, [ebp - 0x2cc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x7e7298
mov ecx, dword [ebp - 0x214]
cmp ecx, dword [ebp + 0xc]
jne 0x7e7298
jmp 0x7e729a
jmp 0x7e721a
mov esp, ebp
pop ebp
ret

Function at 0x7e76fc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
movsx eax, byte [0x813618]
test eax, eax
jne 0x7e7710
call fcn.007e7644
xor ecx, ecx
mov cl, byte [0x813615]
test ecx, ecx
jne 0x7e7797
xor edx, edx
mov dl, byte [0x813614]
test edx, edx
jne 0x7e7797
cmp dword [0x81371c], 0
je 0x7e7772
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0x180
mov ecx, dword [0x81371c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 4], eax
push 0
mov edx, dword [ebp - 4]
push edx
push 0x186
mov eax, dword [0x81371c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x81371c]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x7e7797
push 0x10001
push 0x813618
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x7e7797
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esp, ebp
pop ebp
ret