joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410efe
Capabilities:
Parse url
Send data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1094
call fcn.0042d5a0
mov eax, dword [0x44000c]
xor eax, esp
mov dword [esp + 0x1090], eax
push ebx
push esi
push edi
sub esp, 0xc
mov dword [esp + 0x1c], edx
mov esi, ecx
call fcn.00410e43
mov edi, eax
add esp, 0xc
mov dword [esp + 0x14], edi
test edi, edi
je 0x4110b3
mov ebx, 0x800
lea eax, [esp + 0x98]
push ebx
push 0
push eax
call fcn.00419740
push ebx
lea eax, [esp + 0x8a8]
push 0
push eax
call fcn.00419740
push 0x38
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.00419740
add esp, 0x24
mov dword [esp + 0x1c], 0x3c
lea eax, [esp + 0x98]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x898]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push esi
mov dword [esp + 0x5c], ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov edx, dword [esp + 0x2c]
sub esp, 0x18
mov ecx, edi
call fcn.00410e7e
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 0x18
mov dword [esp + 0x18], eax
test eax, eax
je 0x4110b0
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [esp + 0x5c]
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
je 0x4110aa
push str.Content_Type:_application_x_www_form_urlencoded_r_n
lea ecx, [esp + 0x84]
call fcn.00403240
cmp dword [esp + 0x94], 8
lea ecx, [esp + 0x80]
push 0x20000000
push dword [esp + 0x94]
cmovae ecx, dword [esp + 0x88]
push ecx
push esi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
push 9
pop ecx
xor eax, eax
lea edi, [esp + 0x5c]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
lea edx, [esp + 0x58]
sub esp, 0xc
mov dword [esp + 0x64], 0x28
mov ecx, esi
mov dword [esp + 0x80], edi
call fcn.00410ec3
add esp, 0xc
test eax, eax
je 0x41108b
and dword [esp + 0xc], 0
test edi, edi
je 0x41108b
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push edi
push ebx
push esi
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x411085
add ebx, dword [esp + 0xc]
sub edi, dword [esp + 0xc]
jne 0x411069
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
xor edi, edi
push edi
push edi
push edi
push esi
call dword [sym.imp.WININET.dll_HttpEndRequestW]
push esi
call ebx
lea ecx, [esp + 0x80]
call fcn.00402610
mov edi, dword [esp + 0x14]
push dword [esp + 0x18]
call ebx
push edi
call ebx
mov ecx, dword [esp + 0x109c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004171a2
mov esp, ebp
pop ebp
ret
Function at 0x41123d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x44000c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x440c44]
cmp eax, 0xffffffff
jne 0x4113a7
push pe_nt_image_headers32
lea eax, [ebp - 0x114]
mov dword [0x440c44], 0xfffffc18
push 0
push eax
mov dword [ebp - 0x118], 0x114
call fcn.00419740
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4113a2
cmp dword [ebp - 0x108], 2
jne 0x4113a2
cmp dword [ebp - 0x114], 5
jne 0x411330
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x4112c3
inc eax
jmp 0x411394
cmp eax, 1
jne 0x411326
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_1
call fcn.0041e22e
add esp, 0xc
test eax, eax
jne 0x4112e6
push 3
jmp 0x41132d
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_2
call fcn.0041e22e
add esp, 0xc
test eax, eax
jne 0x411304
push 4
jmp 0x41132d
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_3
call fcn.0041e22e
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 5
jmp 0x411394
cmp eax, 2
jne 0x4113a2
push 6
pop eax
jmp 0x411394
cmp dword [ebp - 0x114], 6
jne 0x41139b
mov eax, dword [ebp - 0x110]
sub eax, 0
je 0x411356
sub eax, 1
je 0x411352
sub eax, 1
jne 0x4113a2
push 0xb
jmp 0x41132d
push 0xa
jmp 0x41132d
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_1
call fcn.0041e22e
add esp, 0xc
test eax, eax
jne 0x411374
push 8
jmp 0x41132d
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_2
call fcn.0041e22e
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 9
mov dword [0x440c44], eax
jmp 0x4113a7
mov eax, 0x3e8
jmp 0x411394
mov eax, dword [0x440c44]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004171a2
mov esp, ebp
pop ebp
ret

Function at 0x4114e7
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x44000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x20c]
push 0x208
mov edi, ecx
mov dword [ebp - 0x214], ebx
push ebx
push eax
mov esi, edx
mov dword [ebp - 0x210], edi
call fcn.00419740
add esp, 0xc
test esi, esi
je 0x41157e
push esi
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x41157e
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.0041969d
pop ecx
pop ecx
test eax, eax
je 0x411577
add eax, 2
push eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00422b47
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00403240
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004171a2
mov esp, ebp
pop ebp
ret
Function at 0x41178a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x44000c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
push ecx
push dword [ecx + 4]
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 0x3c]
push eax
push esi
push ebx
lea ecx, [ebp - 0x24]
call fcn.00411a3a
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0x14
mov edi, eax
lea eax, [ebp - 0x34]
push 0
push eax
push 0x1e
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push dword [eax]
call esi
push 0
lea eax, [ebp - 0x2c]
push eax
movzx eax, word [ebp - 0xa]
push eax
push ebx
mov ebx, dword [ebp - 0x28]
push dword [ebx]
call esi
push 0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x12]
push edi
push dword [ebx]
call esi
push edi
call fcn.0041aac0
pop ecx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebx + 8]
call fcn.0040a534
mov edx, dword [ebp - 0x12]
movzx esi, word [ebp - 0xa]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [ebp - 0x30]
add ecx, dword [ebp - 0x34]
lea eax, [edx + 0x1e]
add eax, esi
add dword [ebx + 4], eax
lea eax, [esi + 0x1e]
add eax, edx
cmp ecx, eax
mov ecx, dword [ebp - 4]
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.004171a2
mov esp, ebp
pop ebp
ret
Function at 0x41183f
Capabilities:
Get file size
Read file via mapping
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x44000c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x2c], edx
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push eax
mov dword [ebp - 0x28], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x38], ebx
cmp ebx, 0xffffffff
jne 0x411884
xor al, al
jmp 0x41195c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x41189c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41187d
push edi
push esi
push esi
push esi
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push esi
push esi
push esi
mov edi, eax
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x24]
push dword [eax + 4]
push dword [ebp - 0x30]
push esi
push dword [ebp - 0x2c]
call fcn.00411a3a
add esp, 0x14
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push dword [ebp - 0x38]
call esi
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push eax
push 0x1e
lea eax, [ebp - 0x24]
push eax
push dword [edi]
call esi
push 0
lea eax, [ebp - 0x3c]
push eax
movzx eax, word [ebp - 0xa]
push eax
push dword [ebp - 0x2c]
push dword [edi]
call esi
push 0
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x12]
push ebx
push dword [edi]
call esi
push ebx
call fcn.0041aac0
pop ecx
lea eax, [ebp - 0x34]
push eax
lea ecx, [edi + 8]
call fcn.0040a534
mov edx, dword [ebp - 0x12]
movzx esi, word [ebp - 0xa]
mov ecx, dword [ebp - 0x3c]
add ecx, dword [ebp - 0x40]
add ecx, dword [ebp - 0x44]
lea eax, [edx + 0x1e]
add eax, esi
add dword [edi + 4], eax
lea eax, [edx + 0x1e]
add eax, esi
cmp ecx, eax
pop edi
sete al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004171a2
mov esp, ebp
pop ebp
ret
Function at 0x41196c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor edx, edx
xor ebx, ebx
mov dword [ebp - 0x20], edx
lea esi, [edi + 8]
mov eax, dword [esi + 4]
sub eax, dword [esi]
sar eax, 3
test eax, eax
je 0x4119d2
mov ecx, dword [esi]
push 0
lea eax, [ebp - 0x24]
push eax
push dword [ecx + ebx*8 + 4]
push dword [ecx + ebx*8]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi]
push dword [eax + ebx*8]
call fcn.0041aac0
mov edx, dword [ebp - 0x20]
mov eax, dword [esi + 4]
pop ecx
mov ecx, dword [esi]
sub eax, ecx
sar eax, 3
add edx, dword [ecx + ebx*8 + 4]
inc ebx
mov dword [ebp - 0x20], edx
cmp ebx, eax
jb 0x411999
mov eax, dword [esi + 4]
xor ecx, ecx
sub eax, dword [esi]
sar eax, 3
mov word [ebp - 0x12], ax
mov word [ebp - 0x14], ax
mov eax, dword [edi + 4]
mov dword [ebp - 0xc], eax
xor eax, eax
push eax
mov word [ebp - 8], ax
lea eax, [ebp - 0x24]
push eax
push 0x16
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x6054b50
push eax
push dword [edi]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0040a3af
push 0x14
push edi
call fcn.004171e6
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004171a2
mov esp, ebp
pop ebp
ret

Function at 0x413fef
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
test edx, edx
jne 0x413ffe
xor eax, eax
jmp 0x4140dc
push esi
mov esi, dword [ebp + 8]
or ecx, 0xffffffff
cmp esi, 8
jb 0x4140bb
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4372f0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4372f0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4372f0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4372f0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4372f0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4372f0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4372f0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4372f0]
sub edi, 1
jne 0x414014
pop edi
test esi, esi
je 0x4140d7
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4372f0]
inc edx
sub esi, 1
jne 0x4140bf
not ecx
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x414ade
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x44000c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x198]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x414b0c
xor al, al
jmp 0x414bd5
mov eax, dword [0x443d50]
test eax, eax
jne 0x414b33
push str.inetmib1.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x443d50], eax
cmp eax, 0x20
jae 0x414b33
and dword [0x443d50], 0
jmp 0x414b05
cmp dword [0x443d30], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x414b53
push str.SnmpExtensionInit
push eax
call esi
mov dword [0x443d30], eax
test eax, eax
je 0x414b05
push 0x443dd0
push 0x443dcc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [0x443d30]
cmp dword [0x443d4c], 0
jne 0x414b8d
push str.SnmpExtensionInitEx
push dword [0x443d50]
call esi
mov dword [0x443d4c], eax
test eax, eax
je 0x414b05
cmp dword [0x443d34], 0
jne 0x414bb0
push str.SnmpExtensionQuery
push dword [0x443d50]
call esi
mov dword [0x443d34], eax
test eax, eax
je 0x414b05
cmp dword [0x443d48], 0
jne 0x414bd3
push str.SnmpExtensionTrap
push dword [0x443d50]
call esi
mov dword [0x443d48], eax
test eax, eax
je 0x414b05
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004171a2
mov esp, ebp
pop ebp
ret
Function at 0x41534b
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
mov eax, dword [0x44000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor bl, bl
mov dword [ebp - 0x500], ecx
xor edi, edi
mov dword [ebp - 0x508], edi
test bl, bl
jne 0x415529
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00419740
push 0x3e8
xor esi, esi
lea eax, [ebp - 0x4ec]
push esi
push eax
call fcn.00419740
push edi
lea eax, [ebp - 0x104]
push str..PhysicalDrive_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
lea eax, [ebp - 0x104]
push esi
push esi
push 3
push esi
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x504], eax
cmp eax, 0xffffffff
je 0x415519
push 0x2710
push 8
mov dword [ebp - 0x4fc], esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x41550d
xor eax, eax
lea edi, [ebp - 0x4f8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov edi, dword [ebp - 0x504]
push eax
mov dword [ebp - 0x4f8], eax
mov dword [ebp - 0x4f4], eax
lea eax, [ebp - 0x4fc]
push eax
push 0x2710
push esi
push 0xc
lea eax, [ebp - 0x4f8]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x41547a
mov eax, dword [esi + 0x18]
test eax, eax
je 0x41547a
lea ecx, [eax + esi]
lea edx, [ebp - 0x4ec]
call fcn.004156d0
lea ecx, [ebp - 0x4ec]
call fcn.00415804
movsx ax, byte [ebp - 0x4ec]
movzx eax, ax
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
jne 0x4154de
push 0x2710
push 0
push esi
call fcn.00419740
add esp, 0xc
lea eax, [ebp - 0x4fc]
xor ecx, ecx
push ecx
push eax
push 0x2710
push esi
push ecx
push ecx
push 0x2d0c10
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4154f7
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x4ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x4ec]
call fcn.00415804
movsx ax, byte [ebp - 0x4ec]
movzx eax, ax
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x4154f7
push 0x31
lea eax, [ebp - 0x4ec]
push eax
push dword [ebp - 0x500]
call fcn.00418dd0
mov bl, 1
add esp, 0xc
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [ebp - 0x508]
push dword [ebp - 0x504]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
mov dword [ebp - 0x508], edi
cmp edi, 0x10
jl 0x415371
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004171a2
mov esp, ebp
pop ebp
ret

Function at 0x416280
Capabilities:
Hash data with md5

Disassembly:
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x42c420
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x42c43a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42c441
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42c430
mov eax, 1
add ebx, ebx
jne 0x42c453
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42c448
jne 0x42c464
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42c448
xor ecx, ecx
sub eax, 3
jb 0x42c478
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42c4ea
mov ebp, eax
add ebx, ebx
jne 0x42c483
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42c490
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42c4b4
inc ecx
add ebx, ebx
jne 0x42c4a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42c495
jne 0x42c4b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42c495
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42c4d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42c4c5
jmp 0x42c436
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42c4d4
add edi, ecx
jmp 0x42c436
pop esi
mov edi, esi
mov ecx, 0x33e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42c4f2
cmp byte [edi], 0xd
jne 0x42c4f2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42c4f7
mov ebp, dword [esi + 0x2c034]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42c552
sub esp, 0xffffff80
jmp 0x402ff4
Function at 0x40d190
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable

Function at 0x40d1f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x492054]
test esi, esi
jle 0x40d2dd
mov edi, dword [0x492058]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x40d224
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x40d2d6
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x40d210
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x40d31a
lea ebx, [esi + esi*2]
mov esi, dword [0x492058]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x492058]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40d2fa
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x40d2cf
sub eax, 0x40
and eax, 0xffffffbf
je 0x40d2cf
mov eax, dword [esp + 0x20]
add ebx, dword [0x492058]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x40d2e4
add dword [0x492054], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x40d22e
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
mov eax, dword [0x492058]
mov eax, dword [eax + ebx + 4]
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]
Function at 0x40d7e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x492408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x492400]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x40d835
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 0x40d82e
test esi, esi
je 0x40d82e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40d810
mov dword [esp], 0x492408
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40da50
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x40da88
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x40da7e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40da8a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x40da70
xor eax, eax
pop ebx
pop esi
ret