joyce8/EMBER2024-capa huggingface dataset:
Function at 0x493620
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, eax
push edi
test esi, esi
jne 0x493638
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
mov eax, dword [esp + 0x1c]
push str.RC_PNG
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4936af
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4936af
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea edi, [ebp + 0x44]
push eax
call fcn.0044d660
add esp, 4
test eax, eax
je 0x4936af
mov eax, dword [edi]
mov edx, dword [eax]
xor ecx, ecx
xor ebx, ebx
test edx, edx
je 0x49368d
cmp edx, 1
jne 0x493693
mov ebx, dword [eax + 0xc]
mov ecx, dword [eax + 8]
push 0
push 2
push 2
push ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
mov dword [ebp + 0x48], ecx
push 0
mov ecx, ebp
mov dword [ebp + 0x4c], ebx
call fcn.0044cad0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x4a04c0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5262cb
mov eax, dword fs:[0]
push eax
sub esp, 0x370
mov eax, dword [0x581500]
xor eax, esp
mov dword [esp + 0x368], eax
push ebx
push esi
push edi
mov eax, dword [0x581500]
xor eax, esp
push eax
lea eax, [esp + 0x380]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
lea esi, [esp + 0x1c]
mov ebx, ecx
mov dword [esp + 0x14], eax
call fcn.00417b60
xor esi, esi
mov dword [esp + 0x1c], vtable.t_fileRead.0
mov dword [esp + method.t_fileRead.1.virtual_0], vtable.t_fileRead.1.0
mov dword [esp + 0x36c], esi
mov dword [esp + 0x370], esi
mov dword [esp + 0x388], esi
mov ecx, dword [esp + 0x14]
push ecx
push edi
lea ecx, [esp + 0x24]
call fcn.00418390
test al, al
jne 0x4a059b
mov ecx, edi
call fcn.00409990
push 0x55d390
push 0x55d15c
mov edx, eax
call fcn.00411e80
mov dword [esp + 0x390], 0xffffffff
add esp, 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.t_fileRead.0
mov dword [esp + method.t_byteStreamRead.virtual_0], vtable.t_byteStreamRead.0
call fcn.00417bd0
xor al, al
jmp 0x4a061c
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x4a05ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
je 0x4a05c6
xor eax, eax
jmp 0x4a05ca
mov eax, dword [esp + 0x18]
push eax
mov dword [ebx + 8], eax
call fcn.004faba2
mov ecx, dword [ebx + 8]
add esp, 4
push ecx
push eax
push edi
lea ecx, [esp + 0x374]
mov dword [ebx + 4], eax
call fcn.004183f0
test al, al
je 0x4a0552
mov dword [esp + 0x388], 0xffffffff
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.t_fileRead.0
mov dword [esp + method.t_byteStreamRead.virtual_0], vtable.t_byteStreamRead.0
call fcn.00417bd0
mov al, 1
mov ecx, dword [esp + 0x380]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x368]
xor ecx, esp
call fcn.004fa259
mov esp, ebp
pop ebp
ret 8
Function at 0x4a1ee0
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x108
mov eax, dword [0x581500]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x102
lea eax, [esp + 6]
push 0
push eax
call fcn.004ff6c0
add esp, 0xc
mov byte [esp], 1
mov byte [esp + 0x102], 0
test esi, esi
je 0x4a1f2d
push 0x7f
push esi
lea ecx, [esp + 0xa]
push 0x80
push ecx
call fcn.004fb3f9
add esp, 0x10
lea edx, [esp]
push edx
push 0x4a1df0
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [esp + 0x104]
xor ecx, esp
mov al, 1
call fcn.004fa259
add esp, 0x108
ret

Function at 0x4a1f60
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x478
mov eax, dword [0x581500]
xor eax, esp
mov dword [esp + 0x474], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x569240
push eax
lea eax, [esp + 0x14]
push eax
mov edi, ecx
mov dword [esp + 0x18], 0
call fcn.004fffa0
mov eax, dword [esp + 0x18]
add esp, 0xc
test eax, eax
jne 0x4a1fba
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x474]
xor ecx, esp
call fcn.004fa259
mov esp, ebp
pop ebp
ret
push eax
push 0x400
lea ecx, [esp + 0x80]
push 1
push ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0x67452301
mov dword [esp + 0x2c], 0xefcdab89
mov dword [esp + 0x30], 0x98badcfe
mov dword [esp + 0x34], 0x10325476
call fcn.00500534
add esp, 0x10
test eax, eax
je 0x4a2034
lea edx, [esp + 0x78]
push edx
lea esi, [esp + 0x14]
call fcn.004a4ce0
mov eax, dword [esp + 0x10]
push eax
push 0x400
lea ecx, [esp + 0x84]
push 1
push ecx
call fcn.00500534
add esp, 0x14
test eax, eax
jne 0x4a2006
lea eax, [esp + 0x10]
call fcn.004a4df0
mov edx, dword [esp + 0xc]
push edx
call fcn.00500186
mov ecx, dword [esp + 0x480]
add esp, 4
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.004fa259
mov esp, ebp
pop ebp
ret

Function at 0x4a2360
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x4a2375
mov esi, dword [eax]
test esi, esi
jne 0x4a2375
xor eax, eax
pop esi
ret 8
push edi
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4a2391
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4a2398
pop edi
xor eax, eax
pop esi
ret 8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov eax, ebx
pop ebx
pop edi
pop esi
ret 8
Function at 0x4a2b70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5243b8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
mov eax, dword [0x581500]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
mov ebx, ecx
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], vtable.t_filemapMessage::t_locker.0
mov dword [esp + 0x24], eax
mov eax, dword [edi + 4]
mov edx, dword [eax + 0xc]
lea esi, [edi + 4]
mov ecx, esi
call edx
test al, al
jne 0x4a2bcf
push str.t_mutex::Lock
push ebx
call fcn.00409a40
add esp, 8
jmp 0x4a2bd9
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push ebx
mov ecx, esi
call edx
test al, al
je 0x4a2c1f
mov ecx, dword [ebp]
mov eax, dword [edi + 0x240]
cmp ecx, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], ecx
jge 0x4a2c36
mov ecx, ebx
mov dword [ebp], eax
call fcn.00409990
push 0x567054
push 0x55d15c
mov edx, eax
call fcn.00411e80
add esp, 8
mov ecx, esi
mov dword [esp + 0x24], 0xffffffff
call fcn.00412a50
xor al, al
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
push ecx
push ebx
mov byte [eax], 0
push edi
lea ebx, [esp + 0x38]
lea eax, [esp + 0x3c]
call fcn.004a2920
mov ecx, esi
test al, al
jne 0x4a2c82
mov dword [esp + 0x24], 0xffffffff
call fcn.00412a50
cmp dword [esp + 0x2c], 2
je 0x4a2c9d
xor al, al
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov byte [edx], 1
mov dword [ebp], eax
mov dword [esp + 0x24], 0xffffffff
call fcn.00412a50
mov al, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc

Function at 0x4a4600
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x404
mov eax, dword [0x581500]
xor eax, esp
mov dword [esp + 0x400], eax
cmp dword [esp + 0x408], 0xffffffff
jne 0x4a4666
xor eax, eax
push 0x3fe
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.004ff6c0
mov eax, dword [esp + 0x418]
lea edx, [esp + 0x41c]
push edx
push eax
push 0x1ff
lea ecx, [esp + 0x18]
push 0x200
push ecx
call fcn.004fcfc1
add esp, 0x20
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.004fa259
add esp, 0x404
ret
Function at 0x4b8a50
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x51fcc8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x581500]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
push 0x64
push 0
lea ecx, [esp + 0x20]
call fcn.004127d0
mov dword [esp + 0x18], vtable.UserEnv::t_locker.0
mov edi, dword [esp + 0x30]
push 0x58b040
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0
call fcn.00412830
mov ebx, dword [esp + 0x34]
test al, al
je 0x4b8afd
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
mov dword [esp + 0x40], ebx
call fcn.004b80f0
test eax, eax
je 0x4b8ada
mov eax, dword [eax + 4]
test eax, eax
jne 0x4b8ae7
push ebx
push edi
mov ecx, esi
call fcn.004b8740
test eax, eax
je 0x4b8afd
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ecx
push edx
push edi
mov ecx, eax
call fcn.004b7d20
test al, al
jne 0x4b8b3e
push ebx
push 0x531dc4
push edi
call fcn.00409a40
add esp, 0xc
lea ecx, [esp + 0x18]
mov bl, al
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x18], vtable.UserEnv::t_locker.0
call fcn.00402ed0
mov al, bl
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0x10
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x18], vtable.UserEnv::t_locker.0
call fcn.00402ed0
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0x10
Function at 0x4bb5b0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x520798
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x581500]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esp + 0x30]
mov al, byte [esp + 0x2c]
mov edi, dword [esp + 0x28]
push str.Local_sgime_user_lock_proc
mov dword [esi + 4], ecx
push edi
mov ecx, 0x58b270
mov byte [esi], al
call fcn.00418260
test al, al
jne 0x4bb620
push 0x532194
push edi
call fcn.00409a40
add esp, 8
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
push str.Local_sgime_user_lock
push edi
mov ecx, 0x58b4a0
call fcn.00412940
test al, al
je 0x4bb5fd
push 0x64
push 0
lea ecx, [esp + 0x18]
call fcn.004127d0
mov dword [esp + 0x10], vtable.UserManager::t_locker.0
push 0x58b4a0
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
call fcn.00412830
test al, al
jne 0x4bb69c
push 0x532194
push edi
call fcn.00409a40
add esp, 8
lea ecx, [esp + 0x10]
mov bl, al
mov dword [esp + 0x20], 0xffffffff
call fcn.00402ed0
mov al, bl
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
cmp byte [esi + 0xa70], 0
jne 0x4bb720
call fcn.0040cdc0
mov ecx, eax
call fcn.0040b180
test al, al
jne 0x4bb6ee
push edi
call fcn.0040cdc0
mov ecx, eax
call fcn.0040b1b0
test al, al
jne 0x4bb6ee
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.00402ed0
xor al, al
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
mov ecx, esi
call fcn.004b9900
push 1
lea edx, [esp + 0x14]
push edx
push edi
mov ecx, esi
call fcn.004bb180
test al, al
je 0x4bb6c6
lea eax, [esp + 0x10]
push eax
push edi
mov ecx, esi
call fcn.004baa30
test al, al
je 0x4bb6c6
mov byte [esi + 0xa70], 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.00402ed0
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
Function at 0x4bb8b0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x520300
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x581500]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
push 0x64
push 0
lea ecx, [esp + 0x20]
call fcn.004127d0
mov dword [esp + 0x18], vtable.UserManager::t_lockerProc.0
mov esi, dword [esp + 0x30]
push 0x58b270
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0
call fcn.00412830
test al, al
je 0x4bb947
push 0x64
push 0
lea ecx, [esp + 0x18]
call fcn.004127d0
mov dword [esp + 0x10], vtable.UserManager::t_locker.0
push 0x58b4a0
push esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
call fcn.00412830
test al, al
jne 0x4bb96f
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.00402ed0
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.00402ed0
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0x10
push 0
push esi
lea ecx, [edi + 0x14c]
call fcn.00412690
test al, al
je 0x4bb939
push 0
push esi
lea ecx, [edi + 0x444]
call fcn.00412690
test al, al
je 0x4bb939
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
push ecx
push edx
lea eax, [esp + 0x1c]
push eax
push esi
mov ecx, edi
call fcn.004bb490
lea ecx, [esp + 0x10]
mov bl, al
mov byte [esp + 0x28], 0
call fcn.00402ed0
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.00402ed0
mov al, bl
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0x10
Function at 0x4bb9f0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x520300
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x581500]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
push 0x64
push 0
lea ecx, [esp + 0x20]
call fcn.004127d0
mov dword [esp + 0x18], vtable.UserManager::t_lockerProc.0
mov esi, dword [esp + 0x30]
push 0x58b270
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0
call fcn.00412830
test al, al
je 0x4bba87
push 0x64
push 0
lea ecx, [esp + 0x18]
call fcn.004127d0
mov dword [esp + 0x10], vtable.UserManager::t_locker.0
push 0x58b4a0
push esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
call fcn.00412830
test al, al
jne 0x4bbaaf
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.00402ed0
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.00402ed0
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0x10
push 0
push esi
lea ecx, [edi + 0x14c]
call fcn.00412690
test al, al
je 0x4bba79
push 0
push esi
lea ecx, [edi + 0x444]
call fcn.00412690
test al, al
je 0x4bba79
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
push ecx
push edx
lea eax, [esp + 0x1c]
push eax
push esi
mov ecx, edi
call fcn.004bb750
lea ecx, [esp + 0x10]
mov bl, al
mov byte [esp + 0x28], 0
call fcn.00402ed0
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.00402ed0
mov al, bl
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0x10
Function at 0x4fa259
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x581500]
jne 0x4fa263
repz ret
jmp fcn.005046ce

Function at 0x51242f
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.004fe87f
and dword [ebp - 4], 0
cmp dword [0x58c214], 0
mov ebx, eax
jne 0x5124e0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x512591
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x512591
push eax
call fcn.004fe80d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x58c214], eax
call esi
push eax
call fcn.004fe80d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x58c218], eax
call esi
push eax
call fcn.004fe80d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x58c21c], eax
call esi
push eax
call fcn.004fe80d
pop ecx
mov dword [0x58c224], eax
test eax, eax
je 0x5124e0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004fe80d
pop ecx
mov dword [0x58c220], eax
mov eax, dword [0x58c220]
cmp eax, ebx
je 0x512538
cmp dword [0x58c224], ebx
je 0x512538
push eax
call fcn.004fe888
push dword [0x58c224]
mov esi, eax
call fcn.004fe888
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x512538
test edi, edi
je 0x512538
call esi
test eax, eax
je 0x51252f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x51252f
test byte [ebp - 0xc], 1
jne 0x512538
or dword [ebp + 0x10], 0x200000
jmp 0x512571
mov eax, dword [0x58c218]
cmp eax, ebx
je 0x512571
push eax
call fcn.004fe888
pop ecx
test eax, eax
je 0x512571
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x512571
mov eax, dword [0x58c21c]
cmp eax, ebx
je 0x512571
push eax
call fcn.004fe888
pop ecx
test eax, eax
je 0x512571
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x58c214]
call fcn.004fe888
pop ecx
test eax, eax
je 0x512591
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x512593
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x51f1ef
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x51f214
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x51f22c
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [ebp + esi]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x51f25b
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [eax + edi - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x51f29a
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x51f36e
sub edx, 0x10000
js 0x51f36e
movzx eax, word [ecx + esi - 1]
cmp eax, ebx
jne 0x51f280
mov eax, dword [esp + 4]
movzx eax, word [ecx + eax]
cmp eax, dword [esp + 0x10]
jne 0x51f280
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [eax + edi + 0x108]
lea esi, [eax + esi + 0x108]
mov eax, dword [edx + esi]
xor eax, dword [edx + edi]
jne 0x51f2f1
mov eax, dword [edx + esi + 4]
xor eax, dword [edx + edi + 4]
jne 0x51f2ee
add edx, 8
jne 0x51f2d5
jmp 0x51f35f
add edx, 4
test eax, 0xffff
jne 0x51f2fe
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edx + edi]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x51f35f
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x51f332
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x51f280
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x51f36e
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [eax + edi - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x51f280
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x51f37f
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401510
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x401118
call fcn.004016c8
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x40154b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40154b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401563
cmp eax, 0x20b
je 0x401550
mov dword [ebp - 0x1c], edi
jmp 0x401577
cmp dword [ecx + 0x84], 0xe
jbe 0x40154b
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x401571
cmp dword [ecx + 0x74], 0xe
jbe 0x40154b
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x402030], 0xffffffff
or dword [0x402034], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x40202c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x402028]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x402038], eax
call fcn.004016be
cmp dword [0x40201c], edi
jne 0x4015d2
push fcn.004016be
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.004016a7
push 0x402010
push 0x40200c
call sub.msvcrt.dll__initterm
mov eax, dword [0x402024]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x402020]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x402008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.004011de
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x401649
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x40167e
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00401703
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx