joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a0a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ebp, edx
mov ecx, 1
mov dword [esp + 0x1c], esi
call fcn.0040a010
mov eax, dword [0x49dfbc]
mov dword [0x489a70], 0x11
push 0x489a20
push 0x1000400
mov ecx, dword [eax]
push 0
push 0
push esi
push eax
call dword [ecx + 0x14]
mov eax, dword [0x49dfbc]
lea ecx, [esp + 0x10]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x44]
mov edx, dword [esi]
mov edi, dword [esi + 4]
mov eax, dword [esp + 0x10]
push 0
push eax
mov dword [esp + 0x1c], edx
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x10]
push 0xffff
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea edx, [edi + 0x1e]
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [0x434774]
call fcn.00402a10
mov eax, dword [0x8aef44]
test eax, eax
je 0x40a1c1
mov ecx, dword [0x4aeaec]
lea eax, [edi + 5]
push eax
mov edx, dword [ecx + 0x204]
mov ecx, dword [esp + 0x14]
call fcn.00402a10
mov ecx, dword [ebp]
mov ebx, 0xffffff
test ecx, ecx
mov esi, ebp
je 0x40a1ba
mov edx, dword [esp + 0x14]
lea eax, [edx + 0x5a]
add eax, 0xaa
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x10]
mov edx, dword [esp + 0x14]
add eax, edi
push eax
lea eax, [edx + 0x5a]
push eax
call fcn.004020b0
mov ecx, dword [esp + 0x18]
mov edx, ebx
push eax
call fcn.004029e0
mov eax, dword [esi + 0x10]
mov edx, dword [0x8aef44]
mov ecx, dword [esp + 0x18]
add eax, edi
push eax
mov eax, dword [esi + edx*4 + 0x14]
push ecx
mov ecx, dword [esp + 0x18]
push eax
mov edx, ebx
call fcn.004029e0
mov ecx, dword [esi + 0x20]
add esi, 0x20
xor ebx, 0xff
test ecx, ecx
jne 0x40a16a
mov eax, 0x172
jmp 0x40a205
mov ecx, dword [ebp]
mov ebx, 0xffffff
test ecx, ecx
mov esi, ebp
je 0x40a200
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x14]
add edx, edi
add eax, 0x96
push edx
push eax
call fcn.004020b0
mov ecx, dword [esp + 0x18]
mov edx, ebx
push eax
call fcn.004029e0
mov ecx, dword [esi + 0x20]
add esi, 0x20
xor ebx, 0xff
test ecx, ecx
jne 0x40a1cf
mov eax, 0x154
mov ecx, dword [ebp]
mov ebx, 0xffffff
test ecx, ecx
je 0x40a247
mov ecx, dword [esp + 0x14]
lea esi, [ebp + 0x14]
add eax, ecx
mov dword [esp + 0x18], eax
mov edx, dword [esi - 4]
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
add edx, edi
push edx
push eax
push ecx
mov ecx, dword [esp + 0x1c]
mov edx, ebx
call fcn.004029e0
mov eax, dword [esi + 0xc]
add esi, 0x20
xor ebx, 0xff
test eax, eax
jne 0x40a21e
mov eax, dword [0x49dfbc]
mov ecx, dword [esp + 0x10]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x68]
mov eax, dword [0x8aef20]
push 1
push 0
mov edx, dword [eax]
push eax
call dword [edx + 0x2c]
mov bl, 0x80
mov eax, dword [0x489a04]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [0x489a04]
push 0x8f3e20
push 0x100
mov edx, dword [eax]
push eax
call dword [edx + 0x24]
test byte [0x8f3e5b], bl
je 0x40a2a1
mov eax, dword [0x49de68]
push 0
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x58]
jmp 0x40a268
mov ecx, dword [esp + 0x1c]
call fcn.004030f0
xor ecx, ecx
call fcn.0040a010
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x40bd10
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
xor ebx, ebx
mov ebp, edx
mov esi, ecx
mov dword [0x4ae500], ebx
mov dword [0x49e0cc], ebx
call fcn.00409450
call fcn.00402400
test eax, eax
jne 0x40bd3d
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push edi
mov ecx, 0x101
xor eax, eax
mov edi, 0x4ae520
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebx
mov dword [0x4899d0], esi
mov word [0x4ae520], 0x300
mov word [0x4ae522], 0x100
mov dword [esp + 0x14], ebx
call edi
mov dword [esp + 0x14], ebx
push 1
mov dword [esp + 0x1c], eax
call edi
mov dword [esp + 0x1c], eax
push ebx
lea eax, [esp + 0x14]
push DirectSoundCreate
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRect]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push ebx
push esi
push ebx
sub ecx, eax
push ebx
push ecx
mov ecx, dword [esp + 0x24]
sub edx, ecx
push edx
push eax
push ecx
push DirectSoundCreate
push 0x8af100
push 0x45377c
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, ebx
mov dword [0x8aeb24], eax
pop edi
jne 0x40bdd7
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
push ebp
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x8aeb24]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
call fcn.00402900
test eax, eax
jne 0x40bdfb
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edx, dword [0x8aeb24]
mov ecx, dword [0x4899d0]
call fcn.00402e20
mov edx, dword [0x8aeb24]
mov ecx, dword [0x4899d0]
call fcn.00402f20
mov dword [0x49e0cc], eax
call fcn.00402320
call fcn.00402320
call fcn.00409250
mov ecx, 0x450d10
call fcn.00402630
test eax, eax
jne 0x40be46
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
call fcn.00409290
test eax, eax
jne 0x40be56
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ecx, dword [0x49e0cc]
push ebx
push 1
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push ebx
call dword [sym.imp.USER32.dll_ShowCursor]
call fcn.004099c0
test eax, eax
jne 0x40be82
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
call fcn.00409d30
test eax, eax
jne 0x40be92
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push ebx
push ebx
push 0x40a6f0
mov dword [0x4ae500], 1
call fcn.004207cd
add esp, 0xc
cmp eax, ebx
mov dword [0x8f3e0c], eax
jne 0x40bece
mov edx, dword [0x4aeaec]
mov ecx, dword [edx + 0x2ec]
call fcn.00401b40
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
Function at 0x422d21
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x455430
cmp edx, dword [eax]
je 0x422d43
add eax, 8
inc ecx
cmp eax, 0x4554c0
jl 0x422d34
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x455430]
jne 0x422e71
mov eax, dword [0x487bf4]
cmp eax, 1
je 0x422e4b
test eax, eax
jne 0x422d74
cmp dword [0x455080], 1
je 0x422e4b
cmp edx, 0xfc
je 0x422e71
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x422dab
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00423a40
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00423b90
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x422dee
lea eax, [ebp - 0x1a4]
push eax
call fcn.00423b90
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4282e4
push edi
call fcn.00425460
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00423a40
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00423a50
lea eax, [ebp - 0xa0]
push 0x4282c4
push eax
call fcn.00423a50
push dword [esi + 0x455434]
lea eax, [ebp - 0xa0]
push eax
call fcn.00423a50
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004253d5
add esp, 0x2c
pop edi
jmp 0x422e71
lea eax, [ebp + 8]
lea esi, [esi + 0x455434]
push 0
push eax
push dword [esi]
call fcn.00423b90
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x40d05c], 1
mov dword [0x40d058], 1
mov dword [0x40d054], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x40d00c], eax
mov eax, dword [0x40d068]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x40d07c]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x40d064]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x409014], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056
Function at 0x401559
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x1c4
call dbg.__main
lea eax, [ebp - 0x19c]
mov dword [esp + 4], eax
mov dword [esp], 0x202
mov eax, dword [sym.imp.WS2_32.dll_WSAStartup]
call eax
sub esp, 8
test eax, eax
je 0x4015b9
mov dword [esp], 2
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov dword [esp + 4], str.Erreur_lors_de_linitialisation_de_Winsock_n
mov dword [esp], eax
call sym._fprintf
mov eax, 1
jmp 0x4016d5
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
mov eax, dword [sym.imp.WS2_32.dll_socket]
call eax
sub esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x401612
mov dword [esp], 2
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov dword [esp + 4], str.Erreur_lors_de_la_cration_de_la_socket_n
mov dword [esp], eax
call sym._fprintf
mov eax, dword [sym.imp.WS2_32.dll_WSACleanup]
call eax
mov eax, 1
jmp 0x4016d5
mov word [ebp - 0x1ac], 2
mov dword [esp], 0x1388
mov eax, dword [sym.imp.WS2_32.dll_htons]
call eax
sub esp, 4
mov word [ebp - 0x1aa], ax
mov dword [esp], str.172.28.43.234
mov eax, dword [sym.imp.WS2_32.dll_inet_addr]
call eax
sub esp, 4
mov dword [ebp - 0x1a8], eax
mov dword [esp + 8], 0x10
lea eax, [ebp - 0x1ac]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_connect]
call eax
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x4016ad
mov dword [esp], 2
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov dword [esp + 4], str.Erreur_lors_de_la_connexion_au_serveur_n
mov dword [esp], eax
call sym._fprintf
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
call eax
sub esp, 4
mov eax, dword [sym.imp.WS2_32.dll_WSACleanup]
call eax
mov eax, 1
jmp 0x4016d5
mov dword [esp], str.Connecte_au_serveur__n
call sym._printf
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
call eax
sub esp, 4
mov eax, dword [sym.imp.WS2_32.dll_WSACleanup]
call eax
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret

Function at 0x401940
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x4019a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40d070]
test esi, esi
jle 0x401ac0
mov eax, dword [0x40d074]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x4019d4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401a57
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4019c0
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401ae7
mov eax, dword [0x40d074]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x40d074]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401ac7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401a50
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401a60
add dword [0x40d070], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40d074]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401a50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4019de
mov eax, dword [0x40d074]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop

Function at 0x402000
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40d08c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40d084]
sub esp, 4
test ebx, ebx
je 0x402055
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40204e
test esi, esi
je 0x40204e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402030
mov dword [esp], 0x40d08c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10001370
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, 0x5a4d
push ebx
push esi
mov esi, ecx
mov ebx, edx
cmp word [esi], ax
jne 0x100013e8
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x100013e8
movzx ecx, word [eax + 6]
xor edx, edx
add eax, 0xf8
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
test ecx, ecx
je 0x100013e8
lea ecx, [eax + 0xc]
push edi
lea esp, [esp]
mov edi, dword [ecx]
lea eax, [edi + esi]
cmp ebx, eax
jb 0x100013c4
mov eax, dword [ecx - 4]
add eax, edi
add eax, esi
cmp ebx, eax
jb 0x100013d6
inc edx
add ecx, 0x28
cmp edx, dword [ebp - 4]
jb 0x100013b0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [edx + edx*4]
shl eax, 3
pop edi
sub eax, esi
add eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100013f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov dword [ebp - 0x214], eax
mov edi, edx
push 0x103
lea eax, [ebp - 0x20c]
xor bl, bl
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x100014a4
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10001491
push 0
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10001486
push 0
lea eax, [ebp - 0x210]
push eax
push 0x28
push dword [ebp - 0x214]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
test esi, esi
je 0x10001491
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10025f80
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
xor ecx, ebp
pop ebx
call fcn.10025f80
mov esp, ebp
pop ebp
ret

Function at 0x100014c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x100014e0
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100014e0
mov al, byte [eax + 0x5e]
shr al, 6
and al, 1
ret
xor al, al
ret

Function at 0x100014f0
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, ecx
test esi, esi
je 0x10001553
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x10001553
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x10001553
mov ecx, 0x14c
cmp word [eax + 4], cx
jne 0x10001553
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x10001553
mov edx, 0xa
mov ecx, esi
call fcn.10001560
test eax, eax
je 0x10001553
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10001553
mov eax, dword [eax]
test eax, eax
je 0x10001553
cmp ecx, 0x80
jb 0x10001553
cmp dword [eax + esi + 0x7c], 0
pop esi
setne al
ret
xor al, al
pop esi
ret
Function at 0x10001560
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x100015a6
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100015a6
movzx ecx, word [eax + 0x18]
push esi
mov esi, 0x10b
cmp cx, si
jne 0x1000158e
lea eax, [eax + edx*8]
add eax, 0x78
pop esi
ret
mov esi, 0x20b
cmp cx, si
jne 0x100015a2
lea eax, [eax + edx*8]
add eax, 0x88
pop esi
ret
xor eax, eax
pop esi
ret
xor eax, eax
ret

Function at 0x100015b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], 0
test esi, esi
jne 0x100015d3
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x100016e7
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x100016e7
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x100016e7
movzx ecx, word [eax + 0x18]
mov edx, 0x10b
cmp cx, dx
jne 0x10001607
add eax, 0x88
jmp 0x1000161a
mov edx, 0x20b
cmp cx, dx
jne 0x100016e7
add eax, 0x98
test eax, eax
je 0x100016e7
mov ecx, dword [eax]
test ecx, ecx
je 0x100016e7
cmp dword [eax + 4], 0
je 0x100016e7
movzx edx, word [ecx + esi + 0xe]
movzx eax, word [ecx + esi + 0xc]
push ebx
lea ebx, [ecx + esi]
mov ecx, 0
add edx, eax
je 0x100016de
test dword [ebx + ecx*8 + 0x10], 0x80000000
jne 0x10001684
cmp word [ebx + ecx*8 + 0x10], 0x10
jne 0x10001684
mov eax, dword [ebx + ecx*8 + 0x14]
test eax, eax
jns 0x10001684
and eax, 0x7fffffff
test dword [eax + ebx + 0x10], 0x80000000
jne 0x10001684
test dword [eax + ebx + 0x14], 0x80000000
jne 0x10001692
inc ecx
cmp ecx, edx
jb 0x10001651
mov eax, dword [ebp - 4]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [eax + ebx + 0x14]
xor edx, edx
and edi, 0x7fffffff
xor eax, eax
add edi, ebx
cmp ax, word [edi + 0xe]
jae 0x100016dd
lea esp, [esp]
cmp edx, 0x12c
je 0x100016dd
test dword [edi + edx*8 + 0x10], 0x80000000
jne 0x100016d4
mov eax, dword [edi + edx*8 + 0x14]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + ebx]
add eax, esi
inc dword [ebp - 4]
mov dword [ecx + edx*4], eax
movzx ecx, word [edi + 0xe]
inc edx
cmp edx, ecx
jb 0x100016b0
pop edi
mov eax, dword [ebp - 4]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10002410
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x1ff
lea eax, [ebp - 0x203]
mov byte [ebp - 0x204], 0
push 0
push eax
call fcn.10029700
mov eax, dword [ebp + 8]
add esp, 0xc
test eax, eax
je 0x10002486
lea ecx, [ebp + 0xc]
push ecx
push eax
lea eax, [ebp - 0x204]
push 0x200
push eax
call fcn.10026d1e
add esp, 0x10
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x80000000
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10025f80
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x80000080
xor ecx, ebp
call fcn.10025f80
mov esp, ebp
pop ebp
ret
Function at 0x10019740
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push 0x104
push 0x100460d0
push eax
xor bl, bl
mov dword [0x100454ac], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push 0x100460d0
call fcn.10027198
mov edx, 0x100467ac
add esp, 8
lea ecx, [eax + 2]
sub edx, ecx
jmp 0x10019780
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x10019780
push 0x5c
push 0x100460d0
call fcn.10027198
xor ecx, ecx
add esp, 8
mov word [eax + 2], cx
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x100197d5
mov dword [ebp + 8], ecx
lea edx, [ebp + 0xc]
mov dword [ebp + 0xc], ecx
lea ecx, [ebp + 8]
call fcn.100205f0
test al, al
je 0x100197ce
mov eax, dword [ebp + 8]
mov dword [0x100462d8], eax
mov eax, dword [ebp + 0xc]
jmp 0x100197dd
mov al, bl
pop ebx
pop ebp
ret 0xc
mov dword [0x100462d8], eax
mov eax, dword [ebp + 0x10]
mov dword [0x100462dc], eax
call fcn.10020cc0
push 0x208
push 0
push 0x100465a4
call fcn.10029700
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0x100465a4
mov ecx, eax
call fcn.100207a0
push 0x100467d4
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, 0x3ff
and ax, cx
push 0x100462e0
mov word [0x100454a4], ax
call fcn.10020f80
add esp, 4
neg al
sbb al, al
and byte [0x100462e0], al
mov al, 1
pop ebx
pop ebp
ret 0xc
Function at 0x1001bba0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x1001bcb1
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x1001bcb1
push edi
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x1001bcb0
mov edx, dword [edi + 0x28]
add edx, esi
je 0x1001bcb0
mov ecx, esi
call fcn.10001370
add eax, esi
cmp eax, esi
je 0x1001bcb0
cmp dword [edi], 0x4550
je 0x1001bc0c
or ecx, 0xffffffff
jmp 0x1001bc0f
mov ecx, dword [edi + 0x38]
mov edx, dword [eax + 0xc]
mov edi, dword [eax + 8]
add edx, esi
mov dword [ebp - 0x28], edx
mov eax, edi
xor edx, edx
div ecx
test edx, edx
je 0x1001bc28
sub edi, edx
add edi, ecx
mov ecx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
xorps xmm0, xmm0
mov esi, dword [ebp - 0x28]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
movdqu xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0xc], 0
movq qword [ebp - 0x14], xmm0
lea esp, [esp]
mov eax, dword [ebp - 0x24]
push 0x1c
test eax, eax
jne 0x1001bc62
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x28]
jmp 0x1001bc69
lea edx, [ebp - 0x24]
add eax, esi
push edx
push eax
call ecx
cmp dword [ebp - 0x18], edi
mov esi, edi
mov eax, dword [ebp - 0x10]
cmovbe esi, dword [ebp - 0x18]
sub eax, 2
je 0x1001bc99
sub eax, 2
je 0x1001bc91
sub eax, 4
jne 0x1001bca5
lea eax, [ebp - 8]
push eax
push 0x80
jmp 0x1001bc9f
lea eax, [ebp - 8]
push eax
push 0x40
jmp 0x1001bc9f
lea eax, [ebp - 8]
push eax
push 0x20
push esi
push dword [ebp - 0x24]
call ebx
mov ecx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub edi, esi
jne 0x1001bc50
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10025f80
mov esp, ebp
pop ebp
ret