joyce8/EMBER2024-capa huggingface dataset:
Function at 0x488a60
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x4af20c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push 0xff
push 0x100
push eax
call fcn.00487410
push dword [eax + 4]
push dword [eax]
call fcn.0049350a
xor eax, eax
add esp, 0x20
cmp dword [esi + 0x260], 0
mov word [ebp - 6], ax
lea eax, [ebp - 0x204]
mov dword [ebp - 0x208], eax
jne 0x488ac7
push eax
call fcn.004938ff
add esp, 4
lea eax, [esi + 0x40]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x488afc
push 0
lea eax, [ebp - 0x208]
push eax
push 0
push 1
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0048d225
mov esp, ebp
pop ebp
ret

Function at 0x4896a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4af20c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
mov dword [ebp - 0x210], 0
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x218]
push edi
push edx
mov edi, dword [eax + 4]
or edi, 0x2001f
mov dword [ebp - 0x220], eax
push edi
push 0
push ecx
push dword [eax]
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x208], 0
mov dword [ebp - 0x218], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [ebp - 0x210]
test esi, esi
jne 0x489801
xor esi, esi
test eax, eax
je 0x48972c
push eax
call ebx
mov esi, eax
mov eax, dword [ebp - 0x218]
and edi, 0x300
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x20c], edi
test esi, esi
jne 0x489801
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x228]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], 0x100
push ecx
lea ecx, [ebp - 0x204]
push ecx
push esi
push eax
call edi
test eax, eax
jne 0x4897c7
nop dword [eax]
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x210]
call fcn.004896a0
mov esi, eax
test esi, esi
jne 0x4897fb
lea eax, [ebp - 0x228]
mov dword [ebp - 0x214], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x210]
call edi
test eax, eax
je 0x489780
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x4897de
push eax
call ebx
mov dword [ebp - 0x210], 0
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x20c], 0
call fcn.00488790
mov esi, eax
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x489808
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048d225
mov esp, ebp
pop ebp
ret 4
Function at 0x489820
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
mov edi, ecx
call fcn.0048aad0
test eax, eax
jne 0x48983e
mov eax, 0x80004005
pop edi
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], str.APPID
push eax
push 1
push 0x65
push dword [0x4afe48]
mov dword [ebp - 0x18], str.187621eb_d0b5_425f_9bb2_8db3e9c8cfa1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call fcn.0048afd0
test eax, eax
js 0x48996d
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20006
push 0
push str.AppID
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48995f
mov ebx, dword [ebp - 4]
push esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.187621eb_d0b5_425f_9bb2_8db3e9c8cfa1
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x48992f
mov esi, dword [ebp - 8]
push str.LocalService
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp byte [ebp + 8], 0
jne 0x4898e5
xor edi, edi
jmp 0x48993c
lea edx, [edi + 0x40]
test edx, edx
je 0x48991d
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 8], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4898f4
sub ecx, dword [ebp + 8]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.LocalService
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, edi
call fcn.00488880
test eax, eax
jne 0x4898e1
mov edi, 0x80004005
jmp 0x48993c
push eax
call fcn.00488060
add esp, 4
mov edi, eax
xor esi, esi
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x48994d
push esi
call eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
test ebx, ebx
je 0x48996a
push ebx
call eax
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4
push eax
call fcn.00488060
add esp, 4
mov edi, eax
mov eax, edi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x489b20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a289b
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4af20c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x489bcc
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x489bcc
call fcn.00488040
mov edi, eax
jmp 0x489ceb
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x489bef
call fcn.00488040
jmp 0x489cde
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x489c0d
call fcn.00488040
jmp 0x489cde
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x489c2e
mov edi, 0x8007000e
jmp 0x489ce0
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x489d24
jb 0x489c4c
cmp eax, 0xffffffff
ja 0x489d24
cmp eax, 0x400
jbe 0x489c61
push eax
lea ecx, [ebp - 0x418]
call fcn.00487d00
jmp 0x489c87
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x489c87
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x489c9e
mov edi, 0x8007000e
jmp 0x489ce0
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x489cbe
call fcn.00488040
jmp 0x489cde
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00489980
mov edi, eax
test esi, esi
je 0x489ceb
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x489d04
lea ecx, [ebp - 0x418]
call fcn.00488870
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 - 0x14]
xor ecx, ebp
call fcn.0048d225
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.004826e0
int3
Function at 0x48a880
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4af20c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x214]
push eax
push 0x20019
push 0
push str.AppID
push SysReAllocString
mov esi, ecx
mov dword [ebp - 0x214], 0
call edi
test eax, eax
jne 0x48aa5e
push ebx
mov ebx, dword [ebp - 0x214]
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x218]
push eax
push 0x20019
push 0
push str.187621eb_d0b5_425f_9bb2_8db3e9c8cfa1
push ebx
call edi
mov edi, eax
test edi, edi
jne 0x48aa2d
mov edi, dword [ebp - 0x218]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], edi
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x21c], 0x208
push eax
push 0
push str.LocalService
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48a964
mov eax, dword [ebp - 0x220]
cmp eax, 1
je 0x48a943
cmp eax, 2
jne 0x48a95e
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x48a9b8
test al, 1
jne 0x48a95e
shr eax, 1
cmp word [ebp + eax*2 - 0x20e], 0
je 0x48a9c1
mov dword [ebp - 0x210], edi
push 0
push 0
mov dword [esi + 0x260], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov edi, eax
test edi, edi
jns 0x48a9a0
cmp edi, 0x80010106
jne 0x48a995
push str.Mscoree.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x48a9a4
mov eax, dword [ebp - 0x210]
jmp 0x48aa35
mov byte [esi + 0x3e], 1
push dword [ebp + 8]
mov ecx, esi
call fcn.0048c4c0
mov edi, eax
mov eax, dword [ebp - 0x210]
jmp 0x48aa2f
xor eax, eax
mov word [ebp - 0x20c], ax
lea eax, [esi + 0x40]
mov dword [esi + 0x260], 0
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x230]
push eax
mov dword [ebp - 0x210], edi
mov dword [esi + 0x260], 1
mov dword [ebp - 0x22c], 0x48b3b0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x48aa1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x250], eax
mov edi, dword [esi + 0x250]
mov eax, dword [ebp - 0x210]
jmp 0x48aa35
xor eax, eax
mov dword [esi + 0x250], edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x48aa42
push eax
call esi
test ebx, ebx
je 0x48aa49
push ebx
call esi
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d225
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 0x250], eax
xor ecx, ebp
pop esi
call fcn.0048d225
mov esp, ebp
pop ebp
ret 4
Function at 0x48ad60
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call fcn.0048aad0
test eax, eax
jne 0x48ad78
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.AppID
push SysReAllocString
mov dword [ebp - 4], 0
call edi
test eax, eax
jne 0x48ae10
mov esi, dword [ebp - 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x20006
push 0
push str.187621eb_d0b5_425f_9bb2_8db3e9c8cfa1
push esi
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x48aded
mov ebx, dword [ebp - 8]
push str.LocalService
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0
call fcn.0048af90
mov edi, eax
test ebx, ebx
je 0x48adfa
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
jmp 0x48ae00
push eax
call fcn.00488060
add esp, 4
mov edi, eax
jmp 0x48ae00
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x48ae1b
push esi
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call fcn.00488060
add esp, 4
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48c260
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, ecx
cmp dword [edi + 0x260], 0
je 0x48c292
push 0
push 0
push 0
push 3
push 4
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x48c467
mov eax, dword [0x4af1e0]
mov edx, dword [0x4af1e4]
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, 1
cmp eax, edx
jae 0x48c31c
nop dword [eax + eax]
test esi, esi
js 0x48c463
mov ebx, dword [eax]
test ebx, ebx
je 0x48c312
mov ecx, dword [ebx + 8]
mov dword [ebp - 4], 0
test ecx, ecx
jne 0x48c2d0
xor esi, esi
jmp 0x48c312
lea eax, [ebp - 4]
push eax
push 0x4a5c20
push dword [ebx + 0xc]
call ecx
mov esi, eax
test esi, esi
js 0x48c2fc
mov eax, dword [ebx + 0x10]
add eax, 4
push eax
push 5
push 4
push dword [ebp - 4]
push dword [ebx]
call dword [sym.imp.ole32.dll_CoRegisterClassObject]
mov esi, eax
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x48c309
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [0x4af1e4]
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
cmp eax, edx
jb 0x48c2b0
test esi, esi
js 0x48c463
jne 0x48c45f
cmp byte [edi + 0x3c], 0
je 0x48c3fe
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
test eax, eax
je 0x48c3e7
lea eax, [ebp - 8]
push eax
push 0
push edi
push 0x48c1d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x48c379
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x30], ebx
test ebx, ebx
je 0x48c3e7
cmp dword [edi + 0x260], 0
je 0x48c3bc
mov edx, 4
lea ecx, [edi + 0x248]
mov eax, 2
lock cmpxchg dword [ecx], edx
cmp eax, 2
jne 0x48c3bc
push str.Service_started_resumed
push edi
call fcn.00488a60
add esp, 8
lea eax, [edi + 0x244]
push eax
push dword [edi + 0x240]
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x48c3de
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [edi + 0x34]
add ecx, ecx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x48c449
mov ecx, edi
mov esi, 0x80004005
call fcn.0048c470
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x260], 0
je 0x48c441
mov edx, 4
lea ecx, [edi + 0x248]
mov eax, 2
lock cmpxchg dword [ecx], edx
cmp eax, 2
jne 0x48c441
push str.Service_started_resumed
push edi
call fcn.00488a60
add esp, 8
lea eax, [edi + 0x244]
push eax
push dword [edi + 0x240]
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x48c463
mov ecx, edi
call fcn.0048c470
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
mov byte [edi + 0x3c], 0
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x48db31
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x48db70
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x48db70
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x48db70
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x48db70
cmp dword [ecx + 0x74], 0xe
jbe 0x48db70
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x497d1a
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4af20c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x497d65
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00497eb5
test al, al
jne 0x497d5f
sub edx, 2
cmp edx, edi
jne 0x497d45
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x497d87
lea eax, [edi + 2]
cmp edx, eax
je 0x497d87
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00497c66
add esp, 0x10
jmp 0x497e81
push esi
lea ecx, [ebp - 0x255]
call fcn.00497eb5
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x497dca
push dword [ebp - 0x25c]
jmp 0x497d77
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x497e07
cmp word [ebp - 0x226], 0
je 0x497e28
cmp word [ebp - 0x226], ax
jne 0x497e07
cmp word [ebp - 0x224], 0
je 0x497e28
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00497c66
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x497e74
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x497de1
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x497e5c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x497e81
push 0x497a96
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0049d3e0
add esp, 0x10
jmp 0x497e51
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048d225
leave
ret
Function at 0x4989d6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x498a73
push ebx
push esi
call fcn.0049899f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00498933
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x498a20
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x498a72
push edi
push eax
call fcn.00496433
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x498a40
call fcn.004956db
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x498a71
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00498933
add esp, 0x20
test eax, eax
jne 0x498a5f
push edi
call fcn.004956db
jmp 0x498a67
push ebx
call fcn.004956db
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4990c2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a8320
push 0x4a8318
push str.FlsAlloc
push 0x1f
call fcn.00498f81
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4990f6
push dword [ebp + 8]
mov ecx, esi
call dword [0x4a327c]
call esi
jmp 0x4990fc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x499140
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a8330
push 0x4a8328
push str.FlsGetValue
push 0x21
call fcn.00498f81
mov esi, eax
add esp, 0x10
test esi, esi
je 0x499177
push dword [ebp + 8]
mov ecx, esi
call dword [0x4a327c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x49917f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a8338
push 0x4a8330
push str.FlsSetValue
push 0x22
call fcn.00498f81
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4991b9
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4a327c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4a1860
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4a188d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4a188d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401220
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
not edi
neg esi
ror esi, 0xda
add esi, 0xfe
rol edx, 0xb5
rcr edx, 0xd3
rcl eax, 0x92
imul esi
sub ebx, 0xf6
rcr ebx, 0xb4
sub edx, 0xd8
inc ebx
bswap edi
rcl eax, 0x6d
inc eax
inc esi
not ebx
rcl edx, 0x90
add edi, 0x99
neg esi
sub esi, 0xcc
rol edi, 0xb8
imul esi
mov edi, 0xe
neg ebx
rcl edx, 0x3b
or esi, 0x64
add eax, 0x12
add ebx, 0x6d
dec esi
not ebx
rol edi, 0xc4
mov eax, 0x17
not ebx
mov ebx, 0x68
or eax, 0x63
or edx, 0xd6
sbb ebx, 0x8e
ror edi, 0xd3
imul esi
rcr eax, 0x6b
mov edi, 0x6e
or esi, 0x31
or eax, 0x1a
ror ebx, 0x29
neg edi
bswap eax
dec esi
rcr eax, 0x87
inc edx
xor ecx, ecx
xor edi, edi
add ebx, 0x8a
or eax, 0x64
not edx
or ebx, 0x89
inc edx
rcr edx, 0x2d
rcr esi, 0xa3
imul ebx
dec esi
imul ebx
not eax
rol esi, 0xc2
and edi, 0xa
not edi
bswap eax
neg edi
ror edi, 0x24
bswap edi
not edi
imul edi
imul eax
mov edx, 0xd9
imul esi
neg esi
and esi, 0xc5
sub edx, 0xb4
add ebx, 0xc9
mov ebx, 0x76
ror esi, 0x58
bswap edi
mov edi, 0xfa
rcl ebx, 0xab
rol edi, 0xd2
bswap edx
inc ebx
neg esi
imul ebx
dec eax
sub edx, 0xf7
or eax, 0xb5
neg esi
imul ebx
mov ebx, 0xa8
or edx, 0x5a
ror edi, 0x6e
mov esi, 0x32
rol eax, 0x21
add edx, 0x4e
inc eax
neg esi
mov ecx, dword [ebp + 0xc]
imul esi
dec eax
neg edi
ror esi, 0x6b
ror edx, 0xef
mov edx, 0xca
not edx
bswap esi
rol ebx, 0xbc
inc eax
neg edx
and edx, 0x31
and esi, 0xb4
inc edx
rcr edx, 0x47
not edx
inc edx
neg esi
rcr ebx, 0xe4
ror ebx, 0x60
sub edi, 0xa8
inc edx
imul esi
not edx
dec esi
imul edi
dec edi
dec esi
rcr eax, 0x24
inc edi
not edi
dec eax
not edi
rcl eax, 0x8a
ror edi, 0x7f
sub esi, 0xd
bswap edx
not ebx
neg eax
dec eax
not ebx
ror ebx, 0x7f
mov ebx, 0x9e
add esi, 0xe3
or esi, 2
imul esi
dec esi
sbb eax, 0xce
rcl eax, 0x73
rcr esi, 0x6d
mov edi, dword [ebp + 8]
mov esi, ebx
mov esi, ebx
xor ebx, esi
not byte [edi]
xor ebx, ebx
mov esi, ebx
mov ebx, ebx
mov eax, eax
mov ebx, esi
xor esi, esi
mov esi, ebx
xor esi, ebx
mov ebx, eax
add byte [edi], 0x26
mov ebx, eax
xor eax, esi
xor eax, esi
xor eax, eax
mov ebx, esi
xor esi, esi
xor eax, esi
xor ebx, ebx
mov ebx, eax
sub byte [edi], 0x87
xor eax, eax
mov ebx, eax
mov ebx, esi
mov ebx, ebx
mov esi, esi
mov eax, eax
mov eax, eax
xor esi, esi
xor ebx, esi
imul byte [edi]
inc edi
loop 0x4013e2
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x406224
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43985c]
jne 0x40622e
repz ret
jmp fcn.00407f25