joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c3d3c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4c3f6c
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x4c3dbf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4c3f6c
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x4c3dbf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4c3f88
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4c3e48
xor eax, eax
push ebp
push 0x4c3e41
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004c3b84
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4c3e26
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4c3fa8
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4c3e26
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c3e48
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4c3f62
cmp byte [ebp - 0xd], 0
jne 0x4c3e8f
cmp byte [ebp - 0x12], 0
je 0x4c3f62
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4c3ea8
dec ebx
cmp byte [ebx], 0x2e
je 0x4c3eb7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4c3ea7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4c3f62
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4c3ef4
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4c3f62
cmp byte [ebp - 0xd], 0
je 0x4c3f62
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4c3f62
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c46e0
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x60f37c], 1
jae 0x4c4766
mov byte [0x513b54], 2
mov dword [0x60edcc], 0x4e4ffc
mov dword [0x60edd0], 0x4e500e
mov byte [0x60ee0a], 2
mov dword [0x60edb8], 0x4c336c
call fcn.004c16c4
test al, al
je 0x4c4723
call fcn.004c16f4
call fcn.004c17b8
mov word [0x60ee10], 0xd7b0
mov word [0x60efdc], 0xd7b0
mov word [0x60f1a8], 0xd7b0
call fcn.004c324c
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x60edfc], eax
call fcn.004bf490
mov dword [0x60edf8], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x60edf0], eax
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4c67dc
call fcn.004c80d4
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x4c67f8
test bl, 1
je 0x4c67f8
call fcn.004cc14c
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4c69dc
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.004c7c70
test byte [ebp + 0xd], 0xc0
jne 0x4c6a00
mov eax, dword [0x5149f0]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4c6a0d
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4c6a3a
je 0x4c6a4c
sub ecx, 0x100
je 0x4c6a5a
sub ecx, 0x100
je 0x4c6a61
sub ecx, 0x100
je 0x4c6a53
jmp 0x4c6a68
sub ecx, 0x600
je 0x4c6a61
sub ecx, 0x100
je 0x4c6a4c
jmp 0x4c6a68
mov edi, 1
jmp 0x4c6a6d
mov edi, 2
jmp 0x4c6a6d
mov edi, 4
jmp 0x4c6a6d
mov edi, 5
jmp 0x4c6a6d
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4c6a94
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x514468]
test al, 0x80
je 0x4c6a8d
mov ebx, 0x80
jmp 0x4c6aa6
mov ebx, 1
jmp 0x4c6aa6
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4c6aa6
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4c6ab8
je 0x4c6ac1
dec eax
je 0x4c6aca
jmp 0x4c6ad3
mov dword [ebp - 4], SysReAllocStringLen
jmp 0x4c6ae2
mov dword [ebp - 4], 0x40000000
jmp 0x4c6ae2
mov dword [ebp - 4], 0xc0000000
jmp 0x4c6ae2
push 1
call fcn.004c8068
pop ecx
mov ebx, eax
jmp 0x4c6bd2
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4c6afe
sub eax, 0x10
je 0x4c6b05
sub eax, 0x10
je 0x4c6b0e
sub eax, 0x10
je 0x4c6b17
jmp 0x4c6b17
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4c6b1e
mov dword [ebp - 8], 1
jmp 0x4c6b1e
mov dword [ebp - 8], 2
jmp 0x4c6b1e
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x4c6b8b
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4c6b80
test byte [ebp + 0xd], 1
je 0x4c6b7b
mov ebx, 0x50
jmp 0x4c6b80
mov ebx, 2
push ebx
call fcn.004c8068
pop ecx
mov ebx, eax
jmp 0x4c6bd2
mov edi, esi
push edi
call fcn.004c6940
pop ecx
test eax, eax
je 0x4c6b9f
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x4c6bab
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004c7d90
add esp, 8
mov ebx, eax
inc eax
jne 0x4c6bd2
push 4
call fcn.004c8068
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.004c7ca4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c6d94
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.004c7c70
test byte [ebp + 0xd], 0xc0
jne 0x4c6db8
mov eax, dword [0x5149f0]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4c6dc5
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4c6df2
je 0x4c6e04
sub ecx, 0x100
je 0x4c6e12
sub ecx, 0x100
je 0x4c6e19
sub ecx, 0x100
je 0x4c6e0b
jmp 0x4c6e20
sub ecx, 0x600
je 0x4c6e19
sub ecx, 0x100
je 0x4c6e04
jmp 0x4c6e20
mov edi, 1
jmp 0x4c6e25
mov edi, 2
jmp 0x4c6e25
mov edi, 4
jmp 0x4c6e25
mov edi, 5
jmp 0x4c6e25
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4c6e4c
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x514468]
test al, 0x80
je 0x4c6e45
mov ebx, 0x80
jmp 0x4c6e5e
mov ebx, 1
jmp 0x4c6e5e
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4c6e5e
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4c6e70
je 0x4c6e79
dec eax
je 0x4c6e82
jmp 0x4c6e8b
mov dword [ebp - 4], SysReAllocStringLen
jmp 0x4c6e9a
mov dword [ebp - 4], 0x40000000
jmp 0x4c6e9a
mov dword [ebp - 4], 0xc0000000
jmp 0x4c6e9a
push 1
call fcn.004c8068
pop ecx
mov ebx, eax
jmp 0x4c6f8a
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4c6eb6
sub eax, 0x10
je 0x4c6ebd
sub eax, 0x10
je 0x4c6ec6
sub eax, 0x10
je 0x4c6ecf
jmp 0x4c6ecf
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4c6ed6
mov dword [ebp - 8], 1
jmp 0x4c6ed6
mov dword [ebp - 8], 2
jmp 0x4c6ed6
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileW
mov esi, eax
cmp eax, 0xffffffff
jne 0x4c6f43
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4c6f38
test byte [ebp + 0xd], 1
je 0x4c6f33
mov ebx, 0x50
jmp 0x4c6f38
mov ebx, 2
push ebx
call fcn.004c8068
pop ecx
mov ebx, eax
jmp 0x4c6f8a
mov edi, esi
push edi
call fcn.004c6940
pop ecx
test eax, eax
je 0x4c6f57
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x4c6f63
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004c7d90
add esp, 8
mov ebx, eax
inc eax
jne 0x4c6f8a
push 4
call fcn.004c8068
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.004c7ca4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cc0e4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x4cc146
call fcn.004cc094
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004c5588
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004c5588
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4cc1c4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x51599c], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4cc29e
cmp dword [0x515998], 0
jne 0x4cc29e
cmp dword [0x515b7c], 0
je 0x4cc258
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004cbba4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4cc23e
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004cbba4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4cc23e
lea ebx, [ebp - 0x84]
jmp 0x4cc23f
inc ebx
call fcn.004cc180
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4cc2d9
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x5159a0
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004c5588
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x5159a3
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4cc2d9
cmp dword [0x515998], 0
je 0x4cc2b8
cmp dword [0x515998], 0xffffffff
je 0x4cc2d9
push esi
call dword [0x515998]
pop ecx
mov eax, dword [0x51599c]
test eax, eax
je 0x4cc2d9
cmp dword [0x51599c], 0xffffffff
je 0x4cc2d9
cmp byte [eax], 0
je 0x4cc2d9
push esi
push eax
call fcn.004cc0e4
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d36d4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x4d3702
mov eax, ebx
call fcn.004d418c
cmp dword [ebx + 0x3c], 0
je 0x4d36fb
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4d3773
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x4d3765
cmp dword [ebx + 8], 0
je 0x4d3724
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x4d3736
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4d3765
cmp dword [ebx + 8], 0
je 0x4d3717
cmp eax, 3
je 0x4d3749
dec eax
jne 0x4d3717
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4d3717
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x4d3717
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x4d3791
cmp dword [ebx + 0x10], 0xcc
je 0x4d3791
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004d379c
pop ebx
ret
Function at 0x411195
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
push ebx
mov edx, 0xd
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x41119c
mov dword [0x460001], 0x50
mov dword [0x460001], 0x51
mov byte [esp], 0
mov dword [0x460001], 0x53
lea eax, [esp + 4]
push eax
push 0x28
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.ADVAPI32.DLL_OpenProcessToken
and eax, eax
je 0x4112d6
mov dword [0x460001], 0x54
lea eax, [esp + 8]
mov dword [0x460001], 0x56
lea eax, [esp + 8]
push eax
push str.SeDebugPrivilege
push 0
call sub.ADVAPI32.DLL_LookupPrivilegeValueA
and eax, eax
je 0x4112b9
mov dword [0x460001], 0x57
lea eax, [esp + 0x10]
mov dword [0x460001], 0x5a
lea ebp, [esp + 0x10]
mov dword [ebp], 1
mov dword [0x460001], 0x5b
lea ebp, [esp + 8]
push dword [ebp]
lea ebp, [esp + 0x14]
push ebp
pop ebp
pop eax
mov dword [ebp + 4], eax
mov dword [0x460001], 0x5c
lea ebp, [esp + 8]
push dword [ebp + 4]
lea ebp, [esp + 0x14]
push ebp
pop ebp
pop eax
mov dword [ebp + 8], eax
mov dword [0x460001], 0x5d
push ebp
pop ebp
mov dword [ebp + 0xc], 2
mov dword [0x460001], 0x5f
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x24]
push eax
push 0x10
lea eax, [esp + 0x1c]
push eax
push 0
push dword [esp + 0x18]
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
push eax
pop eax
mov byte [esp], al
mov dword [0x460001], 0x60
mov dword [0x460001], 0x61
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
mov dword [0x460001], 0x62
mov dword [0x460001], 0x63
movsx eax, byte [esp]
movsx eax, al
jmp 0x4112ff
add esp, 0x34
pop ebx
pop ebp
ret
Function at 0x4163df
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
mov dword [ebp - 0xc], esi
cmp dword [0x4a83b4], ebx
jne 0x416415
push 0x4a8398
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4a83b4], 1
push 0x4a8398
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4a83b0]
mov edi, eax
cmp eax, ebx
je 0x416479
cmp dword [ebp - 4], ebx
jne 0x4165b9
xor eax, eax
inc eax
lea ecx, [edi + 0x114]
cmp esi, dword [ecx]
je 0x41644c
inc eax
add ecx, 4
cmp eax, 0x40
jl 0x41643d
jmp 0x41646a
push dword [ebp + 0xc]
lea esi, [edi + eax*4 + 0x210]
push dword [ebp + 8]
call fcn.00416234
mov esi, dword [ebp - 0xc]
pop ecx
pop ecx
mov dword [ebp - 4], 1
mov edi, dword [edi]
cmp edi, ebx
jne 0x41642b
cmp dword [ebp - 4], ebx
jne 0x4165b9
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push ebx
push 0x100000
lea eax, [ebp - 8]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x4165b9
mov edi, dword [0x4a83b0]
jmp 0x4164b9
cmp dword [edi + 0xc], 0x3f
jl 0x416553
mov edi, dword [edi]
cmp edi, ebx
jne 0x4164ad
push 0x310
push 8
push dword [0x4a7ab4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x4165b0
push ebx
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [edi + 8], eax
cmp eax, ebx
je 0x4165a2
push ebx
push ebx
push edi
push 0x416285
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x114], esi
push 0x1000
lea esi, [edi + 0x214]
push ebx
mov dword [edi + 0x14], eax
mov dword [esi], ebx
mov dword [edi + 0xc], 2
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x416599
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00416234
mov eax, dword [0x4a83b0]
pop ecx
pop ecx
mov dword [edi + 4], ebx
mov dword [edi], eax
cmp eax, ebx
je 0x41654b
mov dword [eax + 4], edi
mov dword [0x4a83b0], edi
jmp 0x4165b9
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 8]
push dword [ebp + 0xc]
mov dword [edi + eax*4 + 0x10], ecx
mov eax, dword [edi + 0xc]
push dword [ebp + 8]
mov dword [edi + eax*4 + 0x110], esi
mov eax, dword [edi + 0xc]
mov dword [edi + eax*4 + 0x210], ebx
mov eax, dword [edi + 0xc]
lea esi, [edi + eax*4 + 0x210]
call fcn.00416234
inc dword [edi + 0xc]
pop ecx
pop ecx
push ebx
push 1
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x4165b9
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push dword [0x4a7ab4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4a8398
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x417c75
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x417d59
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test byte [ebp + 0x10], 1
mov ebx, eax
je 0x417d0f
push edi
push edi
push edi
push dword [ebp + 0xc]
call fcn.00418629
mov ebx, eax
cmp ebx, edi
je 0x417d4e
push dword [ebp + 8]
push dword [0x4a8410]
call fcn.00424bee
mov esi, eax
mov eax, 0x10000
push eax
push ebx
mov dword [esi + 0x18], eax
call fcn.004185cc
push eax
push ebx
call fcn.004185b2
push eax
call fcn.0041839e
mov dword [esi], eax
cmp eax, edi
je 0x417d07
mov dword [esi + 0x14], ebx
mov dword [ebp - 4], esi
jmp 0x417d4e
push ebx
call fcn.004185d9
jmp 0x417d4e
push ebx
push edi
push dword [0x4a7ab4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
je 0x417d4e
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push esi
push dword [ebp + 8]
call fcn.00418388
push esi
push edi
push dword [0x4a7ab4]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
leave
ret 0xc
Function at 0x417e9e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor edi, edi
push dword [0x4a8410]
xor ebx, ebx
call fcn.00424c73
mov esi, eax
test esi, esi
je 0x418024
mov eax, dword [esi]
mov dword [ebp - 4], eax
cmp dword [esi + 0x14], ebx
je 0x417f50
push dword [ebp + 8]
call fcn.004184d0
jmp 0x417ee1
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1d], bl
jne 0x417ed9
push dword [esi + 0x14]
call fcn.00418602
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
xor ebx, ebx
push ebx
mov eax, esi
mov byte [esi + 0x1c], 1
call fcn.00417d73
pop ecx
lea eax, [ebp + 0xc]
push eax
push ebx
push esi
push 0x417de6
push 0x2000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x417f25
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x10], 0xffffffff
je 0x417f36
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.004185a0
mov eax, dword [esi]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x34]
mov esi, dword [esi]
mov eax, dword [esi]
push 1
push ebx
push ebx
push esi
call dword [eax + 0x30]
jmp 0x418024
test byte [ebp + 0xc], 1
je 0x417f59
xor ebx, ebx
inc ebx
test byte [ebp + 0xc], 2
je 0x417fe6
push esi
call fcn.0041803d
lea eax, [esi + 4]
push 0x10
push eax
call fcn.0042535c
pop ecx
pop ecx
lea edx, [ebp - 4]
push edx
push dword [ebp - 4]
mov edi, eax
mov eax, dword [0x4a84e8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jne 0x418024
mov eax, dword [ebp - 4]
mov dword [edi], eax
mov byte [edi + 5], bl
mov byte [edi + 4], 1
mov eax, dword [ebp - 4]
push dword [esi + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
push dword [esi + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
cmp dword [ebp + 0x10], 0xffffffff
je 0x417fca
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.00418500
jmp 0x417fd6
mov eax, dword [ebp - 4]
push dword [esi + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
push 0
push 0
push eax
call dword [ecx + 0x30]
jmp 0x418024
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x34]
cmp dword [ebp + 0x10], 0xffffffff
je 0x418008
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.004185a0
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
push 0
push 0
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x418024
xor edi, edi
inc edi
mov byte [esi + 0x1c], 1
mov byte [esi + 0x1e], bl
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4187e2
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x10], ebx
je 0x418831
push dword [esp + 0x10]
push 0x418760
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x4a8418]
cmp esi, ebx
je 0x418885
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x418829
cmp byte [esi + 0x10], bl
je 0x418829
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, edi
cmp edi, ebx
jne 0x418806
jmp 0x418885
mov esi, dword [0x4a8418]
cmp esi, ebx
je 0x418885
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x41887e
cmp byte [esi + 0x11], bl
je 0x41885b
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], bl
je 0x418871
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push edi
push 0x4a8418
call fcn.00425389
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x41883c
pop ebp
pop edi
pop esi
pop ebx
ret 4