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

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x57bf70]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x10
mov eax, 0x52a06b
call fcn.00505841
xor eax, eax
mov dword [ebp - 4], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], eax
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
push 0x206
push eax
lea eax, [ebp + 2]
xor ecx, ecx
push eax
mov word [ebp], cx
call fcn.005038f0
add esp, 0xc
push 0x104
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edi
lea ecx, [ebp]
call fcn.004ed4a8
lea eax, [ebp - 0x10]
push 0x559098
push eax
mov esi, edi
mov dword [ebp - 0x18], ebx
call fcn.004c3234
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x214]
push ecx
lea ecx, [ebp - 0x14]
push ecx
mov esi, eax
call fcn.004eb601
add esp, 0x10
mov byte [ebp - 4], 3
call fcn.0048e838
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.0047510a
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.0047510a
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x214]
call fcn.0047510a
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0040863f
add ebp, 0x20c
leave
ret

Function at 0x4d5340
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebx
xor ebx, ebx
push ebp
push edi
cmp dword [esi + 0x34], ebx
ja 0x4d5354
cmp dword [esi + 0x30], 0x40
jbe 0x4d5458
mov edi, dword [esi + 0x28]
mov ebp, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 0x40
push edi
call ebp
test eax, eax
jne 0x4d545d
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x4d545d
mov byte [esi + 0x38], 1
mov eax, dword [edi + 0x3c]
mov edi, dword [esi + 0x34]
xor ecx, ecx
lea edx, [eax + 0xf8]
cmp edi, ecx
jb 0x4d5458
ja 0x4d539f
mov ecx, dword [esi + 0x30]
cmp ecx, edx
jbe 0x4d5458
mov edx, dword [esi + 0x28]
add eax, edx
push 0xf8
push eax
mov dword [esi + 0x24], eax
call ebp
test eax, eax
jne 0x4d545d
mov eax, dword [esi + 0x24]
cmp dword [eax], 0x4550
jne 0x4d545d
mov ecx, 0x2000
test word [eax + 0x16], cx
jne 0x4d53d5
mov byte [esi + 0x44], 1
mov edx, eax
movzx eax, word [edx + 0x18]
mov ecx, 0x10b
cmp ax, cx
jne 0x4d53f1
mov dword [esi + 0x40], 1
add edx, 0x78
jmp 0x4d5408
mov ecx, 0x20b
cmp ax, cx
jne 0x4d540b
mov dword [esi + 0x40], 2
add edx, 0x88
mov dword [esi + 0x20], edx
cmp dword [esi + 0x20], ebx
je 0x4d545d
mov eax, dword [esi + 0x24]
movzx ecx, word [eax + 6]
mov dword [esi + 0x3c], ecx
test ecx, ecx
je 0x4d545d
movzx edx, word [eax + 0x14]
mov ebx, dword [esi + 0x34]
lea ecx, [ecx + ecx*4]
add ecx, ecx
add ecx, ecx
add ecx, ecx
sub ecx, dword [esi + 0x28]
add ecx, edx
lea edi, [ecx + eax + 0x18]
xor ecx, ecx
cmp ebx, ecx
jb 0x4d5458
ja 0x4d5446
mov ecx, dword [esi + 0x30]
cmp ecx, edi
jbe 0x4d5458
pop edi
mov ebx, 1
lea edx, [edx + eax + 0x18]
pop ebp
mov eax, ebx
mov dword [esi + 0x1c], edx
pop ebx
ret
mov ebx, 2
pop edi
pop ebp
mov eax, ebx
pop ebx
ret
Function at 0x4e40df
Capabilities:
Set registry value

Disassembly:
push 4
mov eax, 0x52a0dc
call fcn.00505841
lea eax, [ebp - 0x10]
push eax
call fcn.004ed4a8
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
add eax, eax
push eax
lea esi, [ebp - 0x10]
call fcn.00490693
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push eax
push 1
push str.InstallDir
mov ebx, str.SoftwareAdvancedSystemRepairPro
push ebx
push SysReAllocString
call edi
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
add eax, eax
push eax
call fcn.00490693
push eax
push 1
push str.InstallDir
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0047510a
call fcn.00505919
ret

Function at 0x4e595f
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x523268
call fcn.00505841
xor edi, edi
cmp dword [0x579e58], edi
je 0x4e5a28
cmp dword [0x57a3a0], 0xfffffffe
jne 0x4e5a15
cmp dword [ebp + 8], 0xffffffff
je 0x4e5a28
test byte [0x581884], 1
mov esi, 0x581864
jne 0x4e59be
or dword [0x581884], 1
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.0042cbda
push 0x52cb31
call fcn.0050429f
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, esi
call fcn.004dd667
cmp dword [0x581860], edi
je 0x4e59d2
call fcn.004fa6c5
push edi
push edi
push 0x424b70
call fcn.00508e90
add esp, 0xc
mov dword [0x581860], eax
cmp eax, edi
jbe 0x4e5a02
cmp eax, 0xffffffff
je 0x4e5a02
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp + 8]
mov dword [0x57a3a0], eax
jmp 0x4e5a08
mov dword [0x581860], edi
push 0x58186c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4e5a28
mov eax, dword [ebp + 8]
mov dword [0x57a3a0], eax
cmp eax, 0xffffffff
jne 0x4e5a28
mov dword [0x581860], edi
call fcn.00505919
ret

Function at 0x4e99db
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.004f9139
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4e9a14
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.004a3dab
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x4ea5a0
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x528474
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebp
push esi
push edi
mov eax, dword [0x57bf70]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
xor esi, esi
mov dword [esp + 0x30], esi
push 0xc
mov dword [esp + 0x18], esi
call fcn.004650cd
add esp, 4
mov dword [esp + 0x1c], eax
mov ecx, 1
mov dword [esp + 0x30], ecx
cmp eax, esi
je 0x4ea5f9
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
jmp 0x4ea5fb
xor eax, eax
mov byte [esp + 0x30], 0
mov dword [ebp], eax
mov dword [esp + 0x30], esi
mov esi, dword [ebx]
mov edi, dword [ebp]
mov eax, dword [ebx + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], eax
cmp esi, dword [edi + 4]
je 0x4ea646
mov eax, dword [edi]
push esi
push eax
call fcn.00503cd5
mov ecx, dword [edi + 4]
add esp, 8
mov dword [edi], eax
cmp esi, ecx
jbe 0x4ea643
mov edx, esi
sub edx, ecx
push edx
add ecx, eax
push 0
push ecx
call fcn.005038f0
add esp, 0xc
mov dword [edi + 4], esi
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x10], ecx
push 5
add edx, 0xfffffff3
mov dword [esp + 0x1c], edx
mov eax, dword [eax]
lea ecx, [ebx + 8]
push ecx
lea edx, [esp + 0x20]
push edx
add ecx, 5
push ecx
lea ecx, [esp + 0x20]
push ecx
push eax
call fcn.004fdc37
mov esi, dword [ebp]
test eax, eax
jne 0x4ea6c6
mov edi, dword [esp + 0x10]
cmp edi, dword [esi + 4]
je 0x4ea6e2
mov eax, dword [esi]
push edi
push eax
call fcn.00503cd5
mov ecx, dword [esi + 4]
add esp, 8
mov dword [esi], eax
cmp edi, ecx
jbe 0x4ea6ae
mov edx, edi
sub edx, ecx
push edx
add ecx, eax
push 0
push ecx
call fcn.005038f0
add esp, 0xc
mov dword [esi + 4], edi
mov eax, ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret
cmp dword [esi + 4], 0
je 0x4ea6e2
mov eax, dword [esi]
push 0
push eax
call fcn.00503cd5
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], 0
mov eax, ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret
Function at 0x4f3837
Capabilities:
Get token privileges

Disassembly:
push 0x24
mov eax, 0x529224
call fcn.00505841
lea eax, [ebp - 0x14]
push eax
xor edi, edi
push 0x28
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4f38f7
lea eax, [ebp - 0x30]
push eax
call fcn.0043db7b
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
jne 0x4f387c
call fcn.00504168
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
push ecx
sub eax, esi
push eax
push esi
push 3
push dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4f38c3
xor ecx, ecx
cmp dword [esi], edi
jbe 0x4f38b3
lea eax, [esi + 0xc]
mov dword [eax], 2
inc ecx
add eax, 0xc
cmp ecx, dword [esi]
jb 0x4f38a5
push edi
push edi
push dword [ebp - 0x18]
push esi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 1
cmp dword [ebp - 0x24], edi
je 0x4f38e1
push dword [ebp - 0x24]
call fcn.004406fd
pop ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x30]
push eax
call fcn.0046ed31
call fcn.00505919
ret
Function at 0x4f82fb
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52952f
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x57bf70]
xor eax, esp
mov dword [esp + 0x264], eax
push esi
push edi
mov eax, dword [0x57bf70]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
and dword [esp + 0x1c], 0
push 0x24c
lea eax, [esp + 0x24]
push 0
push eax
call fcn.005038f0
lea eax, [esp + 0x20]
push str..
push eax
mov esi, edi
call fcn.004c3234
add esp, 0x14
and dword [esp + 0x280], 0
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
or dword [esp + 0x280], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0047510a
cmp dword [esp + 0x10], 0xffffffff
je 0x4f847b
lea eax, [esp + 0x48]
push 0x55908c
push eax
call fcn.005042b6
pop ecx
pop ecx
test eax, eax
je 0x4f845a
lea eax, [esp + 0x48]
push 0x559090
push eax
call fcn.005042b6
pop ecx
pop ecx
test eax, eax
je 0x4f845a
lea eax, [esp + 0x18]
push 0x559098
push eax
mov esi, edi
call fcn.004c3234
mov dword [esp + 0x288], 1
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x18]
push ecx
mov esi, eax
call fcn.004c3234
add esp, 0x10
mov byte [esp + 0x280], 3
lea ecx, [esp + 0x18]
call fcn.0047510a
test byte [esp + 0x1c], 0x10
je 0x4f8430
push dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
call fcn.004f82fb
pop ecx
pop ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0x80
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or dword [esp + 0x280], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.0047510a
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4f839d
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0xc], 0
je 0x4f8489
push dword [edi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.0040863f
mov esp, ebp
pop ebp
ret
Function at 0x500134
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
mov dword [ebp - 8], edi
cmp eax, ecx
jb 0x5001c3
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00503970
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x500183
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x5001a5
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x500281
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
cmp ecx, edx
jbe 0x5001eb
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x5001f6
xor eax, eax
jmp 0x500242
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x500213
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.00500a84
jmp 0x500223
cmp ecx, 2
jne 0x50022c
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.005023b6
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
push dword [ebp - 4]
push dword [edi]
push eax
call fcn.00503970
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x50026d
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x500281
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x500141
pop edi
pop ebx
leave
ret
Function at 0x5028e1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x57bf70]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x502979
push 0x533b94
push 4
push eax
call fcn.00504465
push eax
call fcn.00415485
add esp, 0x10
push ebx
push edi
call fcn.005059cc
mov edi, dword [eax]
call fcn.005059cc
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00505969
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.005059cc
cmp dword [eax], ebx
je 0x502990
call fcn.005059cc
push dword [eax]
call fcn.004746c0
pop ecx
jmp 0x502997
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x502924
jmp 0x502a1e
call fcn.005059cc
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x502a1a
cmp dword [ebp - 0x234], esi
jae 0x502a1a
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.005038f0
add esp, 0xc
push 0x5337a8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x502a09
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x502a09
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x502a09
push ebx
push ebx
push esi
jmp 0x502a12
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x502a1c
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040863f
leave
ret
Function at 0x515c38
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.00509df8
and dword [ebp - 4], 0
cmp dword [0x583730], 0
mov ebx, eax
jne 0x515ce9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x515d9a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x515d9a
push eax
call fcn.00509d86
mov dword [esp], 0x557914
push edi
mov dword [0x583730], eax
call esi
push eax
call fcn.00509d86
mov dword [esp], 0x557900
push edi
mov dword [0x583734], eax
call esi
push eax
call fcn.00509d86
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x583738], eax
call esi
push eax
call fcn.00509d86
pop ecx
mov dword [0x583740], eax
test eax, eax
je 0x515ce9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00509d86
pop ecx
mov dword [0x58373c], eax
mov eax, dword [0x58373c]
cmp eax, ebx
je 0x515d41
cmp dword [0x583740], ebx
je 0x515d41
push eax
call fcn.00509e01
push dword [0x583740]
mov esi, eax
call fcn.00509e01
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x515d41
test edi, edi
je 0x515d41
call esi
test eax, eax
je 0x515d38
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x515d38
test byte [ebp - 0xc], 1
jne 0x515d41
or dword [ebp + 0x10], 0x200000
jmp 0x515d7a
mov eax, dword [0x583734]
cmp eax, ebx
je 0x515d7a
push eax
call fcn.00509e01
pop ecx
test eax, eax
je 0x515d7a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x515d7a
mov eax, dword [0x583738]
cmp eax, ebx
je 0x515d7a
push eax
call fcn.00509e01
pop ecx
test eax, eax
je 0x515d7a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x583730]
call fcn.00509e01
pop ecx
test eax, eax
je 0x515d9a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x515d9c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40be58
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 0x40bf2e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404030
lea eax, [ebp - 8]
call fcn.004044a8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404458
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bf18
mov eax, ebx
call fcn.004026bc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bf11
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.00404458
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40befb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bf40
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40befb
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 0x40bf18
mov eax, dword [ebp - 0x10]
call fcn.004026dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf35
lea eax, [ebp - 8]
call fcn.00403f98
ret

Function at 0x40c3ac
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 0x40c410
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.00404208
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407f10
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c417
lea eax, [ebp - 0xc]
call fcn.00403f98
ret

Function at 0x41a5b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x452884
cmp dword [edi], 0
jne 0x41a62c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x452880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4503ec
mov ecx, 2
call fcn.004028b8
mov edx, 0x41a588
lea eax, [esi + 5]
call fcn.0041a5a8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a5a8
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 0x41a601
mov dword [0x452880], 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 0x41b840
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 0x41b846
ret
Function at 0x41dc88
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 0x41dcd9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41dcc0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41dcb0
jmp 0x41dcd9
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 0x41dcc1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x425db4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00425a84
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404458
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x425e12
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x450f5c]
mov dl, 1
mov eax, dword [0x4259a8]
call fcn.0040b700
call fcn.004039d4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x428548
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x428494
call sub.user32.dll_EnumWindows
ret

Function at 0x428668
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4286e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004280c8
call sub.kernel32.dll_GetTickCount
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x42868d
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00427cc8
cmp dword [ebp - 4], 0
je 0x4286cf
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404458
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4286ec
lea eax, [ebp - 4]
call fcn.00403f98
ret