joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4068e5
Capabilities:
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x348]
push eax
call fcn.0041c1d0
lea eax, [ebp - 0x348]
push 0x42d2cc
push eax
call fcn.0041c1e0
add esp, 0x10
lea eax, [ebp - 0x140]
mov bl, 1
push eax
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4069c0
test byte [ebp - 0x140], 0x10
jne 0x4069aa
push dword [ebp + 0xc]
lea eax, [ebp - 0x44c]
push eax
call fcn.0041c1d0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x44c]
push eax
call fcn.0041c1e0
push dword [ebp + 8]
lea eax, [ebp - 0x244]
push eax
call fcn.0041c1d0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.0041c1e0
lea eax, [ebp - 0x244]
push eax
call fcn.004068c6
add esp, 0x24
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x4069aa
xor bl, bl
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406934
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
pop esi
pop ebx
leave
ret

Function at 0x4069cd
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push esi
lea eax, [ebp - 0x348]
push dword [ebp + 8]
push eax
call fcn.0041c1d0
lea eax, [ebp - 0x348]
push str..
push eax
call fcn.0041c1e0
add esp, 0x10
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406aae
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.0041c1d0
lea eax, [ebp - 0x104]
push 0x42c458
push eax
call fcn.0041c1e0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0041c1e0
lea eax, [ebp - 0x218]
push 0x42d2d4
push eax
call fcn.0041d140
add esp, 0x20
test eax, eax
je 0x406a98
lea eax, [ebp - 0x218]
push 0x42d2d0
push eax
call fcn.0041d140
pop ecx
test eax, eax
pop ecx
je 0x406a98
test byte [ebp - 0x244], 0x10
lea eax, [ebp - 0x104]
push eax
je 0x406a92
call fcn.004069cd
jmp 0x406a97
call fcn.004068c6
pop ecx
lea eax, [ebp - 0x244]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406a19
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
leave
ret
Function at 0x406fa0
Capabilities:
Resolve dns

Disassembly:
or eax, 0x83000000
daa
sbb byte [edi + 0x5e], bl
pop ebp
ret 0x11
push ebp
jl 0x406f8f
sub esp, 0xffffff87
push ebx
push esi
mov ebp, ebp
or al, 0x33
fstp xword [ebx]
push edi
jbe 0x407027
jne 0x406fba
mov esi, 0x7640f440
mov ebp, dword [edx]
cmp al, 0x30
adc bh, byte [ecx + ecx*2 + 0x3c000000]
cmp dword [edi], ecx
invalid
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x51]
cmp dword [ecx], ebx
je 0xc88d70c6
mov dword [ebp - 4], ebx
mov edx, dword [ebp + 0x1c]
push 0xffffffffffffffcf
push edx
pop edx
xor al, 0x18
pop esi
call dword [esi - 0x743fcc08]
neg dword [edi + 0xe]
sub dword [ebx - 0x74e3ba75], 0x7d8b0c4d
cld
mov dword [ebx - 0x75], edi
push ecx
or al, 0x8b
add al, 0x4b
mov edx, dword [ebp + 0x14]
and eax, 0x88b026a
push esi
mov dword [eax], esi
adc eax, 0x8dfd7579
xor byte [ebx - 0x24eff33c], al
mov bh, 0x43
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x407076
test ah, bl
cmc
sbb al, 0xc0
invalid
mov ecx, dword [ebp + 8]
mov ebp, 0x5631ebcf
call dword [sym.imp.WSOCK32.dll_gethostbyname]
cmp eax, ebx
mov dword [ebp + 0xc], eax
jne 0x407010
mov esi, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
call esi
test eax, eax
je 0x4070c6
inc dword [edi + esi*2]
sbb byte [0x130afcc9], al
pop ebx
mov ebx, dword [ebp + 0x37]
ret
pop edi
pop esi
xor esp, esp
pop ebx
and al, 0xa1
pop ebp
ret
Function at 0x401407
Capabilities:
Terminate process

Disassembly:
push ebx
mov eax, 0xfb9c
mov ebx, 0x12345678
mov ecx, 0x12345678
mov edx, 0x12345678
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [section..data], eax
jmp loc.0047b432
Function at 0x5acf70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x164000]
push edi
jmp 0x5acf8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5acf91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5acf80
mov eax, 1
add ebx, ebx
jne 0x5acfa3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5acfb4
jne 0x5acfd3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5acfd3
dec eax
add ebx, ebx
jne 0x5acfc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5acf98
add ebx, ebx
jne 0x5acfcf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5ad025
xor ecx, ecx
sub eax, 3
jb 0x5acfeb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5ad05a
sar eax, 1
mov ebp, eax
jmp 0x5acff6
add ebx, ebx
jne 0x5acff6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5acfc4
inc ecx
add ebx, ebx
jne 0x5ad004
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5acfc4
add ebx, ebx
jne 0x5ad011
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5ad006
jne 0x5ad022
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5ad006
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5ad044
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5ad036
jmp 0x5acf86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5ad044
add edi, ecx
jmp 0x5acf86
pop esi
mov edi, esi
mov ecx, 0x15fc
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5ad062
cmp byte [edi], 0x11
jne 0x5ad062
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5ad067
lea edi, [esi + 0x1a7000]
mov eax, dword [edi]
or eax, eax
je 0x5ad0df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1d359c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1d3704]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5ad094
mov ecx, edi
jns 0x5ad0c3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1d3708]
or eax, eax
je 0x5ad0d9
mov dword [ebx], eax
add ebx, 4
jmp 0x5ad0b1
call dword [esi + 0x1d3718]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5ad110
cmp al, 0xef
ja 0x5ad103
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5ad0e5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5ad0f2
mov ebp, dword [esi + 0x1d370c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x247]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5ad144
sub esp, 0xffffff80
jmp 0x418d39
Function at 0x4016f0
Capabilities:
Timestomp file
Write file on windows

Disassembly:
sub esp, 0x24
push esi
push edi
mov edi, eax
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, 3
mov word [esp + 0x1a], ax
mov word [esp + 0x20], ax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov word [esp + 0x20], 0x7dd
mov word [esp + 0x26], 0x16
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x38]
call fcn.004017f0
test eax, eax
je 0x401783
mov ecx, dword [esp + 0x34]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40179e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40178d
mov dword [edi + 4], 0x504
xor eax, eax
pop edi
pop esi
add esp, 0x24
ret 8
mov dword [edi + 4], 0x103
xor eax, eax
pop edi
pop esi
add esp, 0x24
ret 8
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
push 0
lea edx, [esp + 0x10]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4017c1
mov dword [edi + 4], 0x106
cmp dword [edi + 4], 0
jne 0x4017d8
lea edx, [esp + 0x10]
push edx
push 0
mov eax, edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [edi + 4], eax
pop edi
sete al
pop esi
add esp, 0x24
ret 8

Function at 0x4017f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push str.BCDATA
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x401810
mov dword [edi + 4], 0x501
pop esi
ret 8
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401828
mov dword [edi + 4], 0x502
pop esi
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov ecx, dword [esp + 8]
mov dword [ecx], eax
jne 0x401844
mov dword [edi + 4], 0x503
pop esi
ret 8
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0xc]
mov dword [edx], eax
mov eax, 1
pop esi
ret 8
Function at 0x402810
Capabilities:
Delete file

Disassembly:
sub esp, 0x468
mov eax, dword [0x40f020]
xor eax, esp
mov dword [esp + 0x464], eax
push ebx
push ebp
mov ebp, dword [esp + 0x474]
push esi
push edi
push 0x206
lea eax, [esp + 0x26e]
mov esi, ecx
push 0
push eax
mov dword [esp + 0x20], esi
mov ebx, edx
mov word [esp + 0x274], 0
call fcn.00407250
add esp, 0xc
test ebx, ebx
je 0x4029f8
cmp ebp, 1
ja 0x4029f8
mov edx, dword [esi + 0x10]
push 0x104
lea ecx, [esp + 0x26c]
push ecx
call edx
test eax, eax
jne 0x40288b
mov dword [esi + 0xc], 0x102
jmp 0x4029ff
test ebp, ebp
jne 0x4028c8
lea eax, [esp + 0x268]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4028a0
mov ecx, dword [0x40dbd8]
mov edx, dword [0x40dbdc]
mov dword [eax], ecx
mov ecx, dword [0x40dbe0]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
jmp 0x4028ec
lea edi, [esp + 0x268]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4028d2
mov ecx, 9
mov esi, str._system32drivers_
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4028f0
lea edi, [esp + 0x268]
sub eax, edx
add edi, 0xfffffffe
jmp 0x402910
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x402910
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x18]
and ecx, 3
push edx
lea eax, [esp + 0x26c]
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push eax
call esi
cmp eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
je 0x402973
push eax
call edi
lea ecx, [esp + 0x268]
push ecx
call ebx
test eax, eax
jne 0x402973
mov edx, dword [esp + 0x14]
mov dword [edx + 0xc], 0x104
jmp 0x4029ff
test ebp, ebp
jne 0x4029f1
lea eax, [esp + 0x268]
push str..inf
push eax
call fcn.00403537
add esp, 8
test eax, eax
je 0x402993
mov word [eax], bp
lea eax, [esp + 0x268]
add eax, 0xfffffffe
lea ecx, [ecx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4029a0
mov ecx, dword [str..pnf]
mov edx, dword [0x40dc38]
mov dword [eax], ecx
mov cx, word [0x40dc3c]
mov dword [eax + 4], edx
lea edx, [esp + 0x18]
mov word [eax + 8], cx
push edx
lea eax, [esp + 0x26c]
push eax
call esi
cmp eax, 0xffffffff
je 0x4029f1
push eax
call edi
lea ecx, [esp + 0x268]
push ecx
call ebx
test eax, eax
je 0x402963
mov eax, 1
jmp 0x402a01
mov dword [esi + 0xc], 4
xor eax, eax
mov ecx, dword [esp + 0x474]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004034bc
add esp, 0x468
ret 4
Function at 0x4034bc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40f020]
jne 0x4034c6
repz ret
jmp fcn.00403c3d

Function at 0x4055c5
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x40f7c8]
je 0x4055e0
inc edi
cmp edi, 0x17
jb 0x4055d1
cmp edi, 0x17
jae 0x405760
push ebp
push 3
call fcn.00408c41
cmp eax, 1
pop ecx
je 0x40572c
push 3
call fcn.00408c41
test eax, eax
pop ecx
jne 0x405614
cmp dword [0x40f01c], 1
je 0x40572c
cmp ebx, 0xfc
je 0x40575f
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x410158
push ebp
call fcn.00406549
add esp, 0xc
test eax, eax
je 0x40564a
push esi
push esi
push esi
push esi
push esi
call fcn.00403ee0
add esp, 0x14
push 0x104
mov esi, 0x410171
push esi
push 0
mov byte [0x410275], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40568e
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00406549
add esp, 0xc
test eax, eax
je 0x40568e
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00403ee0
add esp, 0x14
push esi
call fcn.004065b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4056d3
push esi
call fcn.004065b0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x41046c
push 0x40c89c
sub ecx, eax
push ecx
push eax
call fcn.00407ca6
add esp, 0x14
test eax, eax
je 0x4056d3
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00403ee0
add esp, 0x14
jmp 0x4056d5
xor esi, esi
push 0x40c898
push ebx
push ebp
call fcn.00407bee
add esp, 0xc
test eax, eax
je 0x4056f5
push esi
push esi
push esi
push esi
push esi
call fcn.00403ee0
add esp, 0x14
push dword [edi*8 + 0x40f7cc]
push ebx
push ebp
call fcn.00407bee
add esp, 0xc
test eax, eax
je 0x405717
push esi
push esi
push esi
push esi
push esi
call fcn.00403ee0
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00408a84
add esp, 0xc
jmp 0x40575f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40575f
cmp ebp, 0xffffffff
je 0x40575f
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x40f7cc]
push dword [esi]
call fcn.004065b0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x408a84
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00404ccf
xor ebx, ebx
cmp dword [0x41085c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x408b5a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x408c3a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x408c3a
push eax
call fcn.00404c61
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41085c], eax
call esi
push eax
call fcn.00404c61
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x410860], eax
call esi
push eax
call fcn.00404c61
mov dword [0x410864], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00405352
test eax, eax
pop ecx
pop ecx
je 0x408b28
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403ee0
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x408b5a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404c61
cmp eax, ebx
pop ecx
mov dword [0x41086c], eax
je 0x408b5a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404c61
pop ecx
mov dword [0x410868], eax
mov eax, dword [0x410868]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x408bdf
cmp dword [0x41086c], ecx
je 0x408bdf
push eax
call fcn.00404cd8
push dword [0x41086c]
mov esi, eax
call fcn.00404cd8
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x408bdf
cmp edi, ebx
je 0x408bdf
call esi
cmp eax, ebx
je 0x408bac
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408bac
test byte [ebp - 0x18], 1
jne 0x408bdf
lea eax, [ebp - 0x10]
push eax
call fcn.00405389
test eax, eax
pop ecx
je 0x408bc7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403ee0
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x408bd6
or dword [ebp + 0x10], 0x200000
jmp 0x408c1a
or dword [ebp + 0x10], 0x40000
jmp 0x408c1a
mov eax, dword [0x410860]
cmp eax, dword [ebp - 8]
je 0x408c1a
push eax
call fcn.00404cd8
cmp eax, ebx
pop ecx
je 0x408c1a
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x408c1a
mov eax, dword [0x410864]
cmp eax, dword [ebp - 8]
je 0x408c1a
push eax
call fcn.00404cd8
cmp eax, ebx
pop ecx
je 0x408c1a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41085c]
call fcn.00404cd8
cmp eax, ebx
pop ecx
je 0x408c3a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408c3c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406f14
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406f7a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404f44
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403810
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406f64
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406f81
lea eax, [ebp - 0x10]
call fcn.00404cd4
ret

Function at 0x40c668
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 0x40c6a1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404dc4
jmp 0x40c6aa
mov eax, ebx
mov edx, esi
call fcn.00404d28
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c6b4
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 0x40c6d5
mov al, byte [esp]
jmp 0x40c6d7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40d6e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d7b6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404d6c
lea eax, [ebp - 8]
call fcn.004051e4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00405194
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d7a0
mov eax, ebx
call fcn.00402b10
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d799
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00405194
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d783
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d7c8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d783
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d7a0
mov eax, dword [ebp - 0x10]
call fcn.00402b40
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d7bd
lea eax, [ebp - 8]
call fcn.00404cd4
ret
Function at 0x40dd1c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40dd80
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404f44
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409938
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dd87
lea eax, [ebp - 0xc]
call fcn.00404cd4
ret

Function at 0x41f52c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x4e4898
cmp dword [esi], 0
jne 0x41f5d2
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x4e4894]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x4e1410
mov ecx, 2
call fcn.00402d30
mov edx, 0x41f504
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0041f524
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.0041f524
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x41f599
mov eax, dword [ebp - 8]
mov dword [0x4e4894], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x420ad0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x420ad6
ret

Function at 0x422f54
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x422fa5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x422f8c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x422f7c
jmp 0x422fa5
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x422f8d
pop ebx
mov esp, ebp
pop ebp
ret