joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bff60
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4ea816
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
mov eax, dword [esp + 0x278]
xor ebx, ebx
push 0x206
mov esi, ecx
lea edx, [esp + 0x62]
xor ecx, ecx
push ebx
push edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], eax
mov byte [esp + 0x23], bl
mov word [esp + 0x68], cx
call fcn.004cf830
add esp, 0xc
lea eax, [esp + 0x5c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4bffe7
xor al, al
jmp 0x4c015c
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
lea eax, [esp + 0x5c]
mov dword [esp + 0x270], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4c0005
sub eax, edx
sar eax, 1
push eax
lea edi, [esp + 0x44]
lea ecx, [esp + 0x60]
call fcn.004baa80
add esp, 4
cmp dword [esp + 0x54], 0x10
jb 0x4c0036
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x18], ecx
jmp 0x4c003e
lea edx, [esp + 0x40]
mov dword [esp + 0x18], edx
cmp esi, ebx
je 0x4c0052
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4c0047
sub eax, edx
jmp 0x4c0054
xor eax, eax
mov ecx, dword [esp + 0x50]
lea esi, [ecx + eax + 0x14]
push esi
call fcn.004c83da
add esp, 4
mov ebp, eax
mov edi, dword [esp + 0x20]
cmp edi, ebx
jne 0x4c0074
mov edi, 0x506c50
call fcn.004e4a2d
mov edx, dword [esp + 0x18]
and eax, 0xffffff
push eax
push edi
push edx
push str._s_s__06X
push esi
push ebp
call fcn.004cb64e
push ebx
mov ecx, ebp
call fcn.004c05b0
add esp, 0x1c
test eax, eax
je 0x4c0067
call fcn.004cb73c
cmp dword [eax], 2
jne 0x4c0130
mov ecx, ebp
call fcn.004c07a0
test eax, eax
sete al
mov byte [esp + 0x17], al
cmp al, bl
je 0x4c0130
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x4c0130
mov eax, ebp
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4c00e0
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x2c]
call fcn.00404fd0
lea edi, [esp + 0x24]
mov byte [esp + 0x270], 1
call fcn.00408810
mov byte [esp + 0x270], bl
cmp dword [esp + 0x38], 0x10
jb 0x4c0120
mov eax, dword [esp + 0x24]
push eax
call fcn.004c9387
add esp, 4
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
push ebp
call fcn.004c9b0b
add esp, 4
mov dword [esp + 0x270], 0xffffffff
cmp dword [esp + 0x54], 0x10
jb 0x4c0158
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004c9387
add esp, 4
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.004c9392
add esp, 0x260
ret
Function at 0x4c0420
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x4ea7d0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp esi, ebx
je 0x4c0586
cmp edi, ebx
je 0x4c0586
mov edx, edi
mov eax, esi
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x4c0488
test cl, cl
je 0x4c0484
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x4c0488
add eax, 2
add edx, 2
test cl, cl
jne 0x4c0468
xor eax, eax
jmp 0x4c048d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4c0498
mov al, 1
jmp 0x4c0588
xor eax, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], ax
mov dword [esp + 0x50], ebx
xor ecx, ecx
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], ebx
mov word [esp + 0xc], cx
mov eax, esi
mov byte [esp + 0x50], 1
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c04d0
sub eax, edx
lea edx, [esp + 0x28]
push edx
mov ecx, esi
call fcn.004ba980
mov eax, edi
add esp, 4
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c04f0
lea ecx, [esp + 0xc]
push ecx
sub eax, edx
mov ecx, edi
call fcn.004ba980
mov ecx, dword [esp + 0x10]
mov esi, 8
add esp, 4
cmp dword [esp + 0x20], esi
jae 0x4c051b
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x3c], esi
jae 0x4c0529
lea eax, [esp + 0x28]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
sete bl
mov byte [esp + 0x50], 0
cmp dword [esp + 0x20], esi
jb 0x4c0550
mov edx, dword [esp + 0xc]
push edx
call fcn.004c9387
add esp, 4
xor eax, eax
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
cmp dword [esp + 0x3c], esi
jb 0x4c0582
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004c9387
add esp, 4
mov al, bl
jmp 0x4c0588
xor al, al
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004c9392
add esp, 0x48
ret

Function at 0x4c09e0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [esi]
mov edx, ecx
xor edx, eax
shr ecx, 8
and edx, 0xff
mov edx, dword [edi + edx*4]
xor edx, ecx
movzx ecx, dl
add ecx, dword [esi + 4]
mov dword [esi], edx
mov edx, dword [esi + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 4], ecx
shr ecx, 0x18
xor ecx, edx
and ecx, 0xff
shr edx, 8
xor edx, dword [edi + ecx*4]
mov dword [esi + 8], edx
ret
Function at 0x4c27b0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
cmp dword [esi + 0x4090], 0
je 0x4c285f
cmp dword [esi + 0x6c], 0
jbe 0x4c285f
push ebx
push ebp
mov ebp, 0xffffff78
push edi
lea edi, [esi + 0x88]
sub ebp, esi
jmp 0x4c27e0
movzx ecx, byte [edi]
mov eax, dword [esi + 0x4094]
mov ebx, dword [esi + 0x40a0]
xor ecx, eax
mov edx, dword [esi + 0x409c]
shr eax, 8
and ecx, 0xff
mov ecx, dword [ebx + ecx*4]
xor ecx, eax
movzx eax, cl
add eax, dword [esi + 0x4098]
mov dword [esi + 0x4094], ecx
mov ecx, dword [esi + 0x409c]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x4098], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
and edx, 0xfffd
shr ecx, 8
xor ecx, dword [ebx + eax*4]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
mov dword [esi + 0x409c], ecx
shr eax, 8
xor byte [edi], al
inc edi
lea ecx, [edi + ebp]
cmp ecx, dword [esi + 0x6c]
jb 0x4c27e0
pop edi
pop ebp
pop ebx
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x20]
push edx
mov edx, dword [esi + 0x1c]
lea eax, [esi + 0x88]
push eax
mov eax, dword [esi + 8]
push ecx
push edx
call eax
add esp, 0x10
cmp eax, dword [esi + 0x6c]
mov dword [esi + 0x6c], 0
je 0x4c288a
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x4c921e
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x52ee78], 0
push esi
push edi
jne 0x4c9194
call fcn.004c9100
test eax, eax
je 0x4c91d9
mov eax, dword [0x52ee78]
cmp eax, 1
jne 0x4c91b5
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4c91d9
jmp 0x4c921b
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x4c921b
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4c91dd
xor eax, eax
jmp 0x4c921b
mov eax, dword [esi]
push dword [0x52ee78]
call edi
mov edi, eax
test edi, edi
je 0x4c91ff
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4c921b
lea edi, [esi + 0xff0]
push esi
push dword [0x52ee78]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x4c9205
mov eax, esi
pop edi
pop esi
ret
jmp 0x4c9180

Function at 0x4c9392
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x52a6ec]
jne 0x4c939c
repz ret
jmp fcn.004cf8aa

Function at 0x4ccb86
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4ccbad
call fcn.004cb74f
mov dword [eax], esi
call fcn.004cb73c
push 0x16
pop esi
mov dword [eax], esi
call fcn.004c957c
mov eax, esi
jmp 0x4ccc02
test dword [ebp + 0xc], 0xfffffff9
jne 0x4ccb93
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4ccbda
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004cb762
pop ecx
call fcn.004cb73c
mov eax, dword [eax]
jmp 0x4ccc02
test al, 0x10
jne 0x4ccc00
test al, 1
je 0x4ccc00
test byte [ebp + 0xc], 2
je 0x4ccc00
call fcn.004cb74f
mov dword [eax], 5
call fcn.004cb73c
mov dword [eax], 0xd
jmp 0x4ccbd1
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4ddd22
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x52a6ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004d24a8
and dword [ebp - 0x14], 0
cmp dword [0x52fd5c], 0
mov dword [ebp - 0x18], eax
jne 0x4dddd5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4dde7d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4fc74c
push ebx
call edi
test eax, eax
je 0x4dde7d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4fc73c
push ebx
mov dword [0x52fd5c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x52fd60], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x52fd64], eax
call edi
push eax
call esi
mov dword [0x52fd6c], eax
test eax, eax
je 0x4dddd5
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x52fd68], eax
mov eax, dword [0x52fd68]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4dde2e
cmp dword [0x52fd6c], ecx
je 0x4dde2e
push eax
call esi
push dword [0x52fd6c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4dde2e
test ebx, ebx
je 0x4dde2e
call edi
test eax, eax
je 0x4dde25
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4dde25
test byte [ebp - 8], 1
jne 0x4dde2e
or dword [ebp + 0x10], 0x200000
jmp 0x4dde61
mov eax, dword [0x52fd60]
cmp eax, dword [ebp - 0x18]
je 0x4dde61
push eax
call esi
test eax, eax
je 0x4dde61
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4dde61
mov eax, dword [0x52fd64]
cmp eax, dword [ebp - 0x18]
je 0x4dde61
push eax
call esi
test eax, eax
je 0x4dde61
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x52fd5c]
call esi
test eax, eax
je 0x4dde7d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4dde7f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c9392
leave
ret

Function at 0x405e7c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x4229f4], esi
push edi
jne 0x405eb6
mov ecx, 0x4229f0
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x405e92
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x422df0
jl 0x405e8d
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x405eeb
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4229f0]
xor eax, esi
inc ecx
dec edx
jne 0x405ece
pop edi
pop esi
not eax
ret 0xc
Function at 0x402f10
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040472c
test esi, esi
jne 0x402f47
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.0040481c
jmp 0x402f68
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402dac
mov dword [esp], eax
test esi, esi
je 0x402f68
cmp dword [ebx], 0
je 0x402f68
dec esi
jmp 0x402f4f
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403228
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4d9008], 0x8088405
inc edx
mov dword [ebx + 0x4d9008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4036ec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4d9024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403784
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403764
xor eax, eax
push ebp
push 0x40375d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4037a0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403764
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4d9024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4d9024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4045a8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4dc04c], 0
je 0x404609
cmp word [0x4dc220], 0xd7b2
jne 0x4045d1
cmp dword [0x4dc228], 0
jbe 0x4045d1
mov eax, 0x4dc21c
call dword [0x4dc238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4d9070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404630
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d9034], 0
jne 0x404625
push 0
push 0x4d9068
push 0x4d9070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406ac8
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 0x406b2e
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.0040499c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004032b0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406b18
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406b35
lea eax, [ebp - 0x10]
call fcn.0040472c
ret

Function at 0x40c7a0
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 0x40c7d9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040481c
jmp 0x40c7e2
mov eax, ebx
mov edx, esi
call fcn.00404780
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40cea4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cd0c
mov eax, dword [0x4db7dc]
cmp byte [eax], 0
je 0x40cf20
mov eax, dword [0x4db434]
call fcn.00403058
call fcn.00402cd8
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004098cc
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40cf68
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cf56
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4db3b4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4dc668]
call fcn.00405f18
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40d830
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 0x40d906
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004047c4
lea eax, [ebp - 8]
call fcn.00404c3c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404bec
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d8f0
mov eax, ebx
call fcn.00402b4c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d8e9
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.00404bec
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d8d3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d918
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d8d3
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 0x40d8f0
mov eax, dword [ebp - 0x10]
call fcn.00402b7c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d90d
lea eax, [ebp - 8]
call fcn.0040472c
ret

Function at 0x40de74
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 0x40ded8
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.0040499c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409334
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dedf
lea eax, [ebp - 0xc]
call fcn.0040472c
ret

Function at 0x40e6d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov eax, dword [0x4db474]
cmp dword [eax], 0
je 0x40e706
push 0xa
push 0x40e75c
mov eax, dword [0x4db474]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_FindResourceA
push eax
mov eax, dword [0x4db474]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_LoadResource
mov dword [esp], eax
jmp 0x40e752
xor eax, eax
mov dword [esp], eax
mov eax, dword [0x4db858]
mov eax, dword [eax]
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x40e752
mov ebx, dword [esp + 4]
push 0xa
push 0x40e75c
mov esi, dword [ebx + 4]
push esi
call sub.kernel32.dll_FindResourceA
push eax
push esi
call sub.kernel32.dll_LoadResource
mov dword [esp], eax
cmp dword [esp], 0
jne 0x40e752
mov eax, dword [esp + 4]
mov eax, dword [eax]
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jne 0x40e71d
mov eax, dword [esp]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x427340
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4dc888
cmp dword [edi], 0
jne 0x4273bc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4dc884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4d96d0
mov ecx, 2
call fcn.00402d6c
mov edx, 0x427318
lea eax, [esi + 5]
call fcn.00427338
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00427338
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x427391
mov dword [0x4dc884], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x428980
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 0x428986
ret

Function at 0x42b004
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 0x42b055
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42b03c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42b02c
jmp 0x42b055
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 0x42b03d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4340ac
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404bdc
xor eax, eax
push ebp
push 0x4341da
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x4341ad
xor eax, eax
push ebp
push 0x4341a6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004049ec
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x43417b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x43416a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004049ec
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404bec
mov edx, ebx
pop ecx
call fcn.00402d6c
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x434171
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x4db2e4]
mov dl, 1
mov eax, dword [0x407f88]
call fcn.0040d04c
call fcn.00404124
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4341e1
lea eax, [ebp - 4]
call fcn.0040472c
ret