joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46880b
Capabilities:
Read file on windows
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x410
mov eax, dword [0x49f644]
xor eax, esp
mov dword [esp + 0x40c], eax
cmp dword [ecx + 0x14], 8
push esi
push edi
jb 0x468831
mov ecx, dword [ecx]
xor edi, edi
push edi
push 0x80
push 3
push edi
push 3
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
lea eax, [esi + 1]
cmp eax, 1
ja 0x46886a
xor al, al
mov ecx, dword [esp + 0x414]
pop edi
pop esi
xor ecx, esp
call fcn.00482990
mov esp, ebp
pop ebp
ret
push edi
lea eax, [esp + 0x10]
mov edi, 0x400
push eax
push edi
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4688b7
cmp dword [esp + 0xc], edi
jb 0x4688b7
cmp dword [0x4a02f4], 0
je 0x4688ac
push 0x40307c
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
mov edx, esi
lea ecx, [esp + 0x78]
call fcn.00468498
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x468856
push edi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x402ff8
call dword [sym.imp.msvcrt.dll_wprintf]
add esp, 0x10
push 0xa0
call dword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x4688dd
Capabilities:
Get file version info

Disassembly:
push 0xc1c
mov eax, 0x483846
call fcn.00482f7d
mov esi, 0x400
lea eax, [ebp - 0xc14]
push esi
xor edi, edi
push eax
push edi
mov dword [ebp - 0xc24], edi
mov dword [ebp - 0xc28], edi
mov dword [ebp - 0xc20], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0xc18], eax
cmp eax, esi
jne 0x468929
xor eax, eax
mov word [ebp - 0x416], ax
jmp 0x468931
test eax, eax
je 0x468ac2
lea eax, [ebp - 0xc18]
push eax
lea eax, [ebp - 0xc14]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeExW]
mov dword [ebp - 0xc18], eax
test eax, eax
je 0x468ac2
push eax
mov dword [ebp - 4], edi
call fcn.004826ac
pop ecx
mov esi, eax
lea eax, [ebp - 0xc14]
push esi
push dword [ebp - 0xc18]
push edi
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoExW]
test eax, eax
je 0x468aba
lea eax, [ebp - 0xc18]
mov dword [ebp - 0xc1c], edi
push eax
lea eax, [ebp - 0xc1c]
push eax
push 0x4030ac
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ecx, dword [ebp - 0xc1c]
test ecx, ecx
je 0x468a73
movzx eax, word [ecx + 2]
mov ebx, 0x403100
push 0x4030e0
push eax
movzx eax, word [ecx]
mov edi, 0x200
push eax
push ebx
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.00467c0f
add esp, 0x18
lea eax, [ebp - 0xc18]
push eax
lea eax, [ebp - 0xc24]
push eax
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ecx, dword [ebp - 0xc1c]
push 0x403138
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push ebx
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.00467c0f
add esp, 0x18
lea eax, [ebp - 0xc18]
push eax
lea eax, [ebp - 0xc28]
push eax
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ecx, dword [ebp - 0xc1c]
push 0x40315c
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push ebx
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.00467c0f
add esp, 0x18
lea eax, [ebp - 0xc18]
push eax
lea eax, [ebp - 0xc20]
push eax
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
cmp dword [ebp - 0xc28], 0
je 0x468aae
cmp dword [ebp - 0xc24], 0
je 0x468aae
cmp dword [ebp - 0xc20], 0
je 0x468aae
push dword [ebp - 0xc20]
push dword [ebp - 0xc24]
push dword [ebp - 0xc28]
push 0x40317c
call dword [sym.imp.msvcrt.dll_wprintf]
add esp, 0x10
push 0x4031b8
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
push esi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
call fcn.00482ecf
ret
Function at 0x46b9d7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push ebx
push 0x406e2c
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46ba44
cmp dword [ebp - 4], 1
je 0x46ba19
cmp dword [ebp - 4], 2
jne 0x46ba34
mov ecx, dword [ebp - 8]
test esi, esi
je 0x46ba3e
test ecx, ecx
je 0x46ba39
test cl, 1
jne 0x46ba34
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], bx
je 0x46ba3e
push 0xd
pop eax
jmp 0x46ba44
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x46c209
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push edi
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 4], edx
mov edi, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x46c22d
push 0x19
pop ecx
int 0x29
test byte [ebp - 0xc], 0x44
je 0x46c276
push ebx
push esi
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x40]
xor edx, edx
mov esi, ebx
neg esi
and esi, edi
lea ecx, [ebx - 1]
mov eax, ecx
and ecx, dword [ebp - 4]
and eax, edi
dec ecx
add eax, ebx
add eax, ecx
div ebx
xor edx, edx
mov ecx, eax
mov eax, dword [ebp - 4]
div ebx
add ecx, eax
je 0x46c274
xor eax, eax
lock or dword [esi], eax
add esi, ebx
sub ecx, 1
jne 0x46c268
pop esi
pop ebx
pop edi
leave
ret
Function at 0x46d5af
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov edi, edi
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [0x4aa6bc], ebx
jne 0x46d6b7
push edi
push esi
push esi
push 0x4076d8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
jle 0x46d623
mov eax, edi
sub eax, ebx
test eax, eax
jle 0x46d60e
test esi, esi
je 0x46d5eb
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
lea ebx, [edi*2 + 2]
push ebx
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x46d623
push ebx
push 0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
mov ebx, edi
push ebx
push esi
push 0x4076d8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
sub eax, ebx
test eax, eax
jg 0x46d5d7
mov ecx, esi
mov ebx, 0x4aa6bc
xor eax, eax
lock cmpxchg dword [ebx], ecx
test eax, eax
je 0x46d63c
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
cmp dword [0x4aa6bc], 0
jne 0x46d6b6
push 0x208
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x46d6a2
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x46d66e
cmp eax, 0x103
jle 0x46d6a2
mov edi, dword [0x4aa6b4]
test edi, edi
je 0x46d698
cmp dword [0x4aa6b0], 0
push 0x40770c
jne 0x46d692
mov ecx, edi
call dword [0x4ab2d4]
call edi
jmp 0x46d697
call fcn.00471d2a
pop ecx
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
xor esi, esi
mov ecx, esi
xor eax, eax
lock cmpxchg dword [ebx], ecx
test eax, eax
je 0x46d6b6
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop edi
mov eax, dword [0x4aa6bc]
pop esi
pop ebx
ret

Function at 0x46e07c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, ecx
mov dword [ebp - 0xc], edx
push ebx
push esi
push edi
mov esi, dword [eax + 4]
lea ecx, [eax + 8]
sub esi, dword [eax]
mov dword [ebp - 4], eax
sar esi, 1
jmp 0x46e09d
mov eax, ebx
mov eax, dword [eax]
cmp eax, ecx
jne 0x46e0a8
push 3
pop ebx
jmp 0x46e0ae
mov ebx, dword [ecx]
sub ebx, eax
sar ebx, 1
sub ebx, esi
lea eax, [eax + esi*2]
push ebx
push eax
push dword [edx]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x46e0d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00467bb0
mov edi, eax
mov eax, dword [ebp - 8]
jmp 0x46e0df
xor edi, edi
cmp eax, ebx
jb 0x46e113
inc edi
test edi, edi
je 0x46e113
js 0x46e115
cmp eax, ebx
jbe 0x46e10c
mov ebx, dword [ebp - 4]
lea ecx, [eax + esi]
cmp ecx, eax
jb 0x46e105
push ecx
mov ecx, ebx
call fcn.0046e1cc
mov edx, dword [ebp - 0xc]
lea ecx, [ebx + 8]
test al, al
jne 0x46e09b
mov edi, 0x8007000e
jmp 0x46e118
mov edi, 0x8000ffff
jmp 0x46e115
add esi, eax
mov ebx, dword [ebp - 4]
push esi
mov ecx, ebx
call fcn.0046e199
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47644e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, ecx
mov dword [ebp - 0xc], edx
push ebx
push esi
push edi
mov edi, dword [eax + 4]
lea ecx, [eax + 8]
sub edi, dword [eax]
sar edi, 1
xor esi, esi
mov dword [ebp - 4], eax
jmp 0x476471
mov eax, ebx
mov eax, dword [eax]
cmp eax, ecx
jne 0x47647c
push 3
pop ebx
jmp 0x476482
mov ebx, dword [ecx]
sub ebx, eax
sar ebx, 1
sub ebx, edi
lea ecx, [eax + edi*2]
mov dword [ebp - 0x10], ecx
cmp ebx, 0x7fffffff
jbe 0x476497
or eax, 0xffffffff
jmp 0x47649a
lea eax, [ebx + ebx]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push ecx
push esi
push esi
push dword [edx + 4]
push dword [edx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 8]
shr eax, 1
mov dword [ebp - 8], eax
test esi, esi
je 0x47650f
cmp esi, 0xea
je 0x4764da
test esi, esi
jle 0x4764d4
movzx esi, si
or esi, 0x80070000
test esi, esi
je 0x476526
test esi, esi
js 0x476528
cmp eax, ebx
jbe 0x476508
mov ebx, dword [ebp - 4]
lea ecx, [eax + edi]
cmp ecx, eax
jb 0x476501
push ecx
mov ecx, ebx
call fcn.0046e1cc
mov edx, dword [ebp - 0xc]
lea ecx, [ebx + 8]
push 0
pop esi
test al, al
jne 0x47646f
mov esi, 0x8007000e
jmp 0x47652b
mov esi, 0x8000ffff
jmp 0x476528
xor esi, esi
mov ecx, eax
test eax, eax
je 0x476524
mov edx, dword [ebp - 0x10]
cmp word [edx + eax*2 - 2], si
jne 0x476524
lea ecx, [eax - 1]
mov eax, ecx
add edi, eax
mov ebx, dword [ebp - 4]
push edi
mov ecx, ebx
call fcn.0046e199
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x476fa3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 6
pop ecx
xor ebx, ebx
mov eax, 0x1000000
mov esi, 0x104
mov dword [0x4aa338], eax
push esi
mov dword [0x4aa020], eax
mov edi, 0x4a99f8
xor eax, eax
mov dword [0x4a99f0], ebx
push ebx
rep stosd dword es:[edi], eax
push 0x4aa028
mov dword [0x4a99f4], ebx
mov dword [0x4aa33c], ebx
mov dword [0x4aa024], ebx
call sub.msvcrt.dll_memset
pop ecx
pop ecx
push esi
mov ecx, 0x4aa680
call fcn.0047075c
test al, al
je 0x47719a
push ecx
mov edi, 0x4aa670
push esi
mov ecx, edi
call fcn.0047075c
test al, al
je 0x47719a
mov ecx, dword [0x4aa684]
mov eax, dword [0x4aa680]
sub ecx, eax
sar ecx, 1
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, eax
test esi, esi
je 0x477189
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x477189
push ecx
push esi
mov ecx, 0x4aa680
call fcn.0047075c
mov ecx, dword [0x4aa674]
mov eax, dword [0x4aa670]
sub ecx, eax
push ebx
push ebx
sar ecx, 1
push ecx
push eax
push ebx
push ebx
push ebx
push ebx
push dword [0x4aa680]
call dword [sym.imp.msvcrt.dll__wsplitpath_s]
add esp, 0x24
test eax, eax
je 0x477091
push eax
push 0x464ef8
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
jmp 0x4771a5
mov edx, dword [0x4aa674]
mov eax, dword [0x4aa670]
sub edx, eax
sar edx, 1
push edx
push eax
call dword [sym.imp.msvcrt.dll_wcsnlen]
pop ecx
push eax
mov ecx, edi
call fcn.0047075c
push 0x464f1c
call fcn.00476f61
mov dword [esp], 0x400
mov esi, 0x4a9c18
push esi
push 0x464f34
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp eax, 1
push esi
setl al
dec al
and byte [0x4a9c18], al
push 0x464f44
call fcn.00476f61
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
inc eax
push esi
push eax
mov dword [0x4aa01c], eax
call dword [sym.imp.dbghelp.dll_SymInitialize]
test eax, eax
jne 0x477125
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x464f58
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
mov dword [0x4aa01c], ebx
jmp 0x4771a5
push 0x10813
call dword [sym.imp.dbghelp.dll_SymSetOptions]
push eax
push 0x464f7c
mov dword [0x4a9c14], eax
call fcn.00476f61
pop ecx
pop ecx
push ebx
push ebx
push 0x467ce0
push dword [0x4aa01c]
call dword [sym.imp.dbghelp.dll_SymRegisterCallback64]
mov esi, eax
test esi, esi
jne 0x47716c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x464f8c
jmp 0x477085
call fcn.0047653a
cmp dword [0x4a8704], ebx
jne 0x477185
push 0x464fb8
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
mov eax, esi
jmp 0x4771a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x464ed0
jmp 0x477085
push 0x464eac
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x477240
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x49f644]
xor eax, ebp
mov dword [ebp - 4], eax
xor edx, edx
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x424], edx
push edi
mov dword [ebp - 0x420], edx
mov dword [ebp - 0x41c], edx
cmp dword [ebp + 0xc], edx
jne 0x477286
push 0x46501c
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
xor eax, eax
jmp 0x4773fe
mov ecx, 0x104
lea eax, [ebp - 0x418]
push ecx
push eax
push ecx
lea eax, [ebp - 0x210]
push eax
push edx
push edx
push edx
push edx
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__wsplitpath_s]
add esp, 0x24
cmp word [ebp - 0x418], si
jne 0x4772cc
mov edi, dword [0x4aa338]
mov ebx, dword [0x4aa33c]
mov dword [ebp - 0x420], 1
jmp 0x477308
lea eax, [ebp - 0x418]
push 0x465050
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x4772fc
mov edi, dword [0x4aa338]
mov ebx, dword [0x4aa33c]
mov dword [ebp - 0x41c], 1
jmp 0x477308
mov edi, dword [0x4aa020]
mov ebx, dword [0x4aa024]
mov eax, dword [0x4a99f0]
or eax, dword [0x4a99f4]
je 0x47731a
call fcn.004771ac
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x424]
jne 0x477323
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
mov ecx, 0x4aa660
call fcn.004706b4
test al, al
jne 0x477360
push dword [ebp + 8]
push 0x46505c
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
jmp 0x47727e
cmp dword [ebp - 0x41c], esi
jne 0x47738c
xor eax, eax
push eax
push eax
push 3
push eax
push eax
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
jmp 0x477391
mov eax, 0x1000000
push dword [ebp - 0x420]
xor ecx, ecx
push ecx
push eax
push ebx
push edi
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
push esi
push dword [0x4aa01c]
call dword [sym.imp.dbghelp.dll_SymLoadModuleExW]
mov ecx, eax
or ecx, edx
jne 0x4773e4
mov eax, dword [0x4aa660]
mov dword [0x4aa664], eax
mov word [eax], cx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x465080
call dword [sym.imp.msvcrt.dll_printf]
add esp, 0xc
jmp 0x47727f
mov dword [0x4a99f0], eax
mov dword [0x4a99f4], edx
cmp esi, 0xffffffff
je 0x4773fb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00482990
leave
ret 8
Function at 0x478e65
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x49f644]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x210], edx
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x220], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x214], eax
mov eax, dword [0x4a02f4]
mov dword [ebp - 0x21c], eax
mov eax, 0x104
push esi
xor esi, esi
cmp dword [ebx], eax
jae 0x478ebc
push 0x7a
mov dword [ebx], eax
pop eax
jmp 0x478fb4
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push dword [ebp - 0x210]
mov edi, eax
push edi
call dword [sym.imp.dbghelp.dll_SymInitialize]
mov eax, 0x680
cmp dword [ebp - 0x21c], esi
je 0x478ef6
push 0
push 0
push 0x467ce0
push edi
call dword [sym.imp.dbghelp.dll_SymRegisterCallback64]
mov eax, 0x80000680
push eax
call dword [sym.imp.dbghelp.dll_SymSetOptions]
push 0x104
lea eax, [ebp - 0x108]
push eax
push dword [ebx]
push dword [ebp - 0x214]
push 2
push dword [ebp - 0x218]
push 0
push edi
call dword [sym.imp.dbghelp.dll_SymGetSymbolFile]
test eax, eax
jne 0x478faa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
jne 0x478faa
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x234]
call fcn.00479235
mov eax, dword [eax + 0xc]
cmp byte [eax], 0x2e
jne 0x478f52
inc eax
push eax
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push 0x465a74
push 0x104
push eax
call fcn.004729cc
add esp, 0x14
lea eax, [ebp - 0x108]
xor esi, esi
push 0x104
push eax
push dword [ebx]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x214]
push 2
push dword [ebp - 0x218]
push eax
push esi
call dword [sym.imp.dbghelp.dll_SymGetSymbolFile]
test eax, eax
jne 0x478faa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
call dword [sym.imp.dbghelp.dll_SymCleanup]
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00482990
leave
ret 0x10
Function at 0x47bc66
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
mov edi, edi
push ebx
mov ebx, edx
shr edx, 2
push esi
push edi
xor edi, edi
lea ecx, [ecx + edx*4]
mov esi, edi
neg edx
je 0x47bc9e
imul eax, dword [ecx + edx*4], 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, esi
rol eax, 0xd
imul esi, eax, 5
sub esi, 0x19ab949c
add edx, 1
jne 0x47bc7b
mov eax, ebx
and eax, 3
sub eax, 1
je 0x47bcc2
sub eax, 1
je 0x47bcb9
sub eax, 1
jne 0x47bcd8
movzx edi, byte [ecx + 2]
shl edi, 0x10
movzx eax, byte [ecx + 1]
shl eax, 8
or edi, eax
movzx eax, byte [ecx]
or eax, edi
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor esi, eax
xor esi, ebx
mov eax, esi
shr eax, 0x10
xor eax, esi
imul ecx, eax, 0x85ebca6b
pop edi
pop esi
pop ebx
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0xc2b2ae35
mov eax, ecx
shr eax, 0x10
xor eax, ecx
ret
Function at 0x482980
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x484e50
call fcn.00483308
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x4aab04
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x4827a8
cmp eax, esi
jne 0x48279b
xor esi, esi
inc esi
mov edi, esi
jmp 0x4827ab
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x48277f
xor esi, esi
inc esi
cmp dword [0x4aab08], esi
jne 0x4827bd
push 0x1f
call fcn.00544000
pop ecx
jmp 0x4827f7
cmp dword [0x4aab08], ebx
jne 0x4827f1
mov dword [0x4aab08], esi
push 0x4018bc
push 0x4018b0
call fcn.004828dc
pop ecx
pop ecx
test eax, eax
je 0x4827f7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4828cc
mov dword [0x49ff98], esi
cmp dword [0x4aab08], esi
jne 0x48281a
push 0x4018ac
push 0x401868
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4aab08], 2
test edi, edi
jne 0x482827
xor eax, eax
mov ecx, 0x4aab04
xchg dword [ecx], eax
cmp dword [0x4aab14], 0
je 0x482853
push 0x4aab14
call fcn.00483160
pop ecx
test eax, eax
je 0x482853
push ebx
push 2
push ebx
mov esi, dword [0x4aab14]
mov ecx, esi
call dword [0x4ab2d4]
call esi
push dword [0x49ffa4]
push dword [0x49ffa0]
push dword [0x49ff9c]
call fcn.00468ace
add esp, 0xc
mov dword [0x49ff94], eax
cmp dword [0x49ffac], 0
jne 0x4828b1
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x49ff98], 0
jne 0x4828c5
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x49ff94]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.00483255
jmp 0x482763

Function at 0x483044
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x484f48
call fcn.00483308
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4830a4
cmp eax, 0xffffffff
je 0x4830a4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x48309d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x48309d
cmp edx, 0x10000000
jae 0x48309d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x48309a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x483110
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x48314e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x483146
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x483150
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x483136
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x483220
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x483251
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x483251
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x483251
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..3ean
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x431072
nop
nop
nop
mov ebx, 0x40915c
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x16f42a01
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x431060
nop
mov eax, section..7LWLf
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x70036dd2
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x403800
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x460020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403898
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403878
xor eax, eax
push ebp
push 0x403871
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 0x4038b4
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 0x403878
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x460020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x460020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404694
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x462044], 0
je 0x4046f5
cmp word [0x462218], 0xd7b2
jne 0x4046bd
cmp dword [0x462220], 0
jbe 0x4046bd
mov eax, 0x462214
call dword [0x462230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x40471c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46002c], 0
jne 0x404711
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret