joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f830
Capabilities:
Check http status code

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
lea eax, [ecx - 0xc8]
xor edi, edi
mov ebx, dword [esi + 0xc]
cmp eax, 0x64
jb 0x44f860
push str.Couldnt_set_desired_mode
push esi
call fcn.00434e80
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
ret
cmp ecx, 0xc8
je 0x44f877
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.00434f50
add esp, 0xc
mov al, byte [esp + 0x18]
push ebp
cmp al, 0x13
jne 0x44f891
push ebx
push esi
call fcn.0044f730
add esp, 8
mov edi, eax
pop ebp
pop edi
pop esi
pop ebx
ret
cmp al, 0x14
jne 0x44f99d
mov edi, dword [esi + 0xc]
xor ebx, ebx
cmp byte [esi + 0x4d0], 2
mov dword [esp + 0x18], edi
jne 0x44f90e
mov eax, dword [esi + 0x134]
mov eax, dword [eax]
test eax, eax
je 0x44f90e
push 3
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
push ecx
push ebx
push eax
call fcn.004570e0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x44f9c8
push 0x2f
push dword [esp + 0x18]
call fcn.0046fa90
add esp, 8
test eax, eax
je 0x44f8fd
mov ebx, dword [esp + 0x14]
mov ecx, 1
sub eax, ebx
cmovne ecx, eax
mov byte [ecx + ebx], 0
jmp 0x44f90a
push dword [esp + 0x14]
call dword [0x662054]
add esp, 4
mov edi, dword [esp + 0x18]
mov ecx, dword [esi + 0x508]
test ecx, ecx
jne 0x44f92c
cmp byte [esi + 0xd2f], 0
mov ecx, str.NLST
mov eax, str.LIST
cmove ecx, eax
mov edx, 0x494f04
test ebx, ebx
mov eax, edx
cmovne eax, ebx
push eax
mov eax, 0x647d7c
cmove eax, edx
push eax
push ecx
push 0x647f38
call fcn.00429600
push ebx
mov ebp, eax
call dword [0x662054]
add esp, 0x14
test ebp, ebp
jne 0x44f969
mov edi, 0x1b
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret
push ebp
push 0x647308
lea eax, [edi + 0x378]
push eax
push esi
call fcn.00465c70
push ebp
mov edi, eax
call dword [0x662054]
add esp, 0x14
test edi, edi
jne 0x44f9c8
mov eax, dword [esi + 0xc]
pop ebp
mov byte [eax + 0x40e], 0x1f
mov eax, edi
pop edi
pop esi
pop ebx
ret
cmp al, 0x15
jne 0x44f9b5
push 0xd
push 1
push esi
call fcn.0044f2a0
add esp, 0xc
mov edi, eax
pop ebp
pop edi
pop esi
pop ebx
ret
cmp al, 0x16
jne 0x44f9c8
push 0xe
push 1
push esi
call fcn.0044f2a0
add esp, 0xc
mov edi, eax
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x458cf0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x68534c]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x458d41
push 3
push 2
push eax
push eax
push 6
call fcn.0045db90
add esp, 0x14
test al, al
je 0x458d35
mov dword [0x68534c], 2
add esp, 0xc
ret
mov dword [0x68534c], 1
jmp 0x458d46
cmp eax, 2
je 0x458d8c
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x458d71
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jg 0x458d8c
push 4
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
ret
Function at 0x459820
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x66239c]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x18c]
push ebx
mov ebx, dword [esp + 0x194]
push esi
mov esi, dword [eax + 8]
lea eax, [esp + 0xc]
push 0x80
push 0
push eax
mov dword [esp + 0x14], 0x80
call fcn.0046f660
add esp, 0xc
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
push dword [esi + 0x98]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4598c4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x8c]
push 0x100
push eax
push esi
call fcn.00425360
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.00434e80
add esp, 0x1c
mov eax, 2
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.0046c32a
add esp, 0x188
ret
lea eax, [esi + 0x100]
push eax
lea eax, [esi + 0xd0]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
call fcn.00435a60
add esp, 0x10
test al, al
jne 0x459937
push edi
call fcn.00475bb5
mov esi, dword [eax]
call fcn.00475bb5
mov edi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.00425360
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00434e80
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.0046c32a
add esp, 0x188
ret
mov ecx, dword [esp + 0x18c]
xor eax, eax
pop esi
pop ebx
xor ecx, esp
call fcn.0046c32a
add esp, 0x188
ret
Function at 0x45b140
Capabilities:
Check http status code

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x1c]
push 0x11
push str.WWW_Authenticate:
push esi
mov dword [esp + 0x1c], 0
lea ebx, [edi + 0xf0]
call fcn.00437730
add esp, 0xc
test eax, eax
je 0x45b179
mov ebp, dword [ebx]
cmp ebp, 0x191
je 0x45b197
push 0x13
push str.Proxy_authenticate:
push esi
call fcn.00437730
add esp, 0xc
test eax, eax
je 0x45b1df
mov ebp, dword [ebx]
cmp ebp, 0x197
jne 0x45b1df
push esi
call fcn.0043ad30
mov esi, eax
add esp, 4
test esi, esi
jne 0x45b1af
pop edi
lea eax, [esi + 0x1b]
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp ebp, 0x197
push esi
sete al
movzx eax, al
push eax
push edi
call fcn.0043bed0
push esi
mov edi, eax
call dword [0x662054]
add esp, 0x10
test edi, edi
je 0x45b321
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0xf
push str.Content_Length:
push esi
call fcn.00437730
add esp, 0xc
test eax, eax
je 0x45b239
mov ecx, dword [ebx]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x45b217
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response
push edi
call fcn.00434f50
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x20]
add eax, 0x200
push eax
push 0xa
lea eax, [esi + 0xf]
push 0
push eax
call fcn.0043ea20
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 5
push str.close
push 0xb
push str.Connection:
push esi
call fcn.0043ac80
add esp, 0x14
test al, al
jne 0x45b316
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.00437730
add esp, 0xc
test eax, eax
je 0x45b2d2
mov ecx, dword [ebx]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x45b290
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
push edi
call fcn.00434f50
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 7
push str.chunked
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.0043ac80
add esp, 0x14
test al, al
je 0x45b321
push str.CONNECT_responded_chunked
push edi
call fcn.00434f50
mov eax, dword [esp + 0x28]
push edi
mov byte [eax + 0x20c], 1
call fcn.0045dfe0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 5
push str.close
push 0x11
push str.Proxy_Connection:
push esi
call fcn.0043ac80
add esp, 0x14
test al, al
jne 0x45b316
push ebx
lea eax, [esp + 0x14]
push eax
push str.HTTP_1._d__d
push esi
call fcn.0042e040
add esp, 0x10
cmp eax, 2
jne 0x45b321
mov eax, dword [ebx]
mov dword [edi + 0xd64], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x20]
mov byte [eax + 0x20d], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x461e10
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x66239c]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
mov ebp, dword [esp + 0x134]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
call fcn.004833d3
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x461e8f
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00425450
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.00434e80
push esi
call dword [0x662054]
add esp, 0x20
lea eax, [ebx + 0x4d]
jmp 0x461fef
push 0
push 0x80
push 3
push 0
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x461ee9
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00425450
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.00434e80
push 0
mov esi, 0x4d
call dword [0x662054]
add esp, 0x20
jmp 0x461fe1
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x461f29
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00425450
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.00434e80
add esp, 0x1c
mov esi, 0x4d
jmp 0x461fcd
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x461f57
jg 0x461f3d
cmp edi, 0x100000
jbe 0x461f57
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebp
call fcn.00434e80
add esp, 0xc
mov esi, 0x4d
jmp 0x461fcd
lea eax, [edi + 1]
push eax
call dword [0x662050]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x461f6f
lea esi, [eax + 0x1b]
jmp 0x461fcd
test edi, edi
je 0x461fb4
nop dword [eax]
nop word [eax + eax]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46200c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x462008
add esi, eax
cmp esi, edi
jb 0x461f80
push ebp
push dword [esp + 0x18]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.00461c10
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x662054]
add esp, 4
push dword [esp + 0x20]
call fcn.004718e4
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046c32a
add esp, 0x120
ret
mov edi, esi
jmp 0x461fb4
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00425450
push eax
push dword [esp + 0x24]
push str.schannel:_failed_to_read_from_CA_file__s:__s
push ebp
call fcn.00434e80
add esp, 0x1c
mov esi, 0x4d
jmp 0x461fcd
Function at 0x469570
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x662050]
mov esi, eax
add esp, 4
test esi, esi
jne 0x46959b
pop esi
pop ebp
add esp, 0xc
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x4695ea
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [edi]
push ebx
push dword [esp + 0x2c]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x28], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov ebx, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x28], ebx
jmp 0x4695f2
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x30]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x469663
mov ebp, dword [esp + 0x14]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x469620
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp + 0x10]
jae 0x469695
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x650a65
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x650a66
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x469670
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x4696a0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push dword [esp + 0x24]
call fcn.004368a0
mov edx, dword [ebp + 0xc]
mov ebx, eax
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x14], ebx
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [0x662050]
mov esi, eax
add esp, 8
test esi, esi
je 0x469822
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x469722
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [esp + 0x28]
push ebx
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x38], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov eax, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x1c]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x469793
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x469750
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp + 0x10]
jae 0x4697c5
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x650a65
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x650a66
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x4697a0
push dword [esp + 0x30]
call fcn.004368a0
mov ecx, dword [esi]
push eax
push dword [esp + 0x34]
push dword [esi + 4]
mov eax, dword [ecx + 4]
call eax
mov edi, dword [esp + 0x44]
add esp, 0x10
mov ebx, dword [esi]
test edi, edi
jne 0x4697f0
mov edi, dword [ebx + 0xc]
add edi, dword [esi + 8]
push dword [esi + 4]
mov eax, dword [ebx + 8]
push edi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push edi
push dword [esi + 8]
call eax
push dword [esi + 8]
mov eax, dword [ebx + 8]
push edi
call eax
push esi
call dword [0x662054]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0xc
ret
Function at 0x46b000
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x46b04c
push ebx
mov ebx, dword [esp + 0x10]
mov cl, byte [esi + ebx]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [esi + ebx], cl
inc esi
cmp esi, edi
jb 0x46b011
pop ebx
pop edi
pop esi
ret

Function at 0x46cfd0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x46d00f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x46d00f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x46d00f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x46d00f
cmp dword [ecx + 0x74], 0xe
jbe 0x46d00f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x486458
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004862d7

Function at 0x48bee1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048bba1

Function at 0x491840
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x49186d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x49186d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401020
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401043
or eax, eax
pop esi
ret
mov ecx, dword [esp + 0xc]
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x402370
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [ecx + 8]
cmp word [eax], 0x5a4d
je 0x40237d
xor eax, eax
ret
push esi
mov esi, dword [eax + 0x3c]
add esi, eax
push 0xe0
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x402397
xor eax, eax
pop esi
ret
mov ecx, dword [esi]
xor eax, eax
cmp ecx, 0x4550
sete al
pop esi
ret

Function at 0x4024a0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [ecx + 8]
mov edx, dword [eax + 0x3c]
push esi
mov esi, dword [edx + eax + 0x60]
test esi, esi
push edi
jne 0x4024b8
mov dword [edx + eax + 0x60], 0x1000
mov eax, dword [ecx + 8]
mov edx, dword [eax + 0x3c]
mov esi, dword [edx + eax + 0x64]
test esi, esi
jne 0x4024ce
mov dword [edx + eax + 0x64], 0x100000
mov eax, dword [ecx + 8]
mov dword [ecx + 0x118], 1
mov edx, dword [eax + 0x3c]
movzx edx, word [edx + eax + 0x14]
add edx, dword [eax + 0x3c]
lea eax, [edx + eax + 0x18]
xor edi, edi
test eax, eax
mov dword [ecx + 0x120], eax
je 0x402572
push ebp
mov edx, dword [eax + 8]
test edx, edx
jne 0x402504
mov edx, dword [eax + 0x10]
mov dword [eax + 8], edx
mov edx, dword [ecx + 0x118]
inc edx
mov dword [ecx + 0x118], edx
mov esi, edx
mov edx, dword [ecx + 8]
mov ebp, dword [edx + 0x3c]
movzx edx, word [edx + ebp + 6]
cmp esi, edx
jbe 0x402526
xor edx, edx
jmp 0x402535
mov edx, dword [ecx + 0x120]
add edx, 0x28
mov dword [ecx + 0x120], edx
mov esi, dword [eax + 0x14]
test esi, esi
jne 0x40254d
test edx, edx
mov dword [eax + 0x10], 0
je 0x402577
mov esi, dword [edx + 0x14]
mov dword [eax + 0x14], esi
test edx, edx
je 0x402569
mov edi, dword [eax + 0x14]
test edi, edi
je 0x402569
mov esi, dword [edx + 0x14]
test esi, esi
je 0x402569
sub esi, edi
cmp dword [eax + 0x10], esi
jbe 0x402569
mov dword [eax + 0x10], esi
test edx, edx
mov edi, eax
mov eax, edx
jne 0x4024f7
pop ebp
pop edi
xor eax, eax
pop esi
ret
test edi, edi
je 0x402569
mov esi, dword [edi + 0x14]
add esi, dword [edi + 0x10]
mov dword [eax + 0x14], esi
jmp 0x402569

Function at 0x4026e0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [ecx + 8]
push ebx
mov ebx, 1
mov dword [ecx + 0x118], ebx
mov edx, dword [eax + 0x3c]
movzx edx, word [edx + eax + 0x14]
push ebp
add edx, dword [eax + 0x3c]
lea edx, [edx + eax + 0x18]
test edx, edx
push esi
mov esi, dword [esp + 0x10]
mov dword [ecx + 0x120], edx
je 0x402743
mov edi, edi
cmp dword [edx + 0xc], esi
ja 0x402758
mov edx, dword [ecx + 0x118]
xor bl, bl
inc edx
mov dword [ecx + 0x118], edx
mov ebp, dword [eax + 0x3c]
movzx ebp, word [eax + ebp + 6]
cmp edx, ebp
ja 0x402743
mov edx, dword [ecx + 0x120]
add edx, 0x28
test edx, edx
mov dword [ecx + 0x120], edx
jne 0x402710
call fcn.004023b0
mov ecx, eax
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0xc]
add eax, esi
pop esi
pop ebp
pop ebx
ret 4
test bl, bl
je 0x402764
mov eax, esi
pop esi
pop ebp
pop ebx
ret 4
mov ebx, dword [edx - 0x1c]
mov eax, dword [edx - 0x14]
sub edx, 0x28
sub eax, ebx
add eax, esi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x402780
Capabilities:
Enumerate pe sections

Disassembly:
mov edx, dword [esp + 4]
sub esp, 8
push ebx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov dword [ecx + eax + 0x3c], edx
mov ecx, dword [ebp + 8]
mov dword [ebp + 0x118], 1
mov eax, dword [ecx + 0x3c]
movzx edx, word [eax + ecx + 0x14]
push esi
push edi
mov edi, eax
add edx, edi
lea ebx, [edx + ecx + 0x18]
mov dword [ebp + 0x120], ebx
mov eax, dword [ecx + 0x3c]
movzx eax, word [eax + ecx + 6]
lea edx, [eax + eax*4]
mov eax, dword [ecx + 0x3c]
lea edx, [eax + edx*8]
sub edx, ecx
lea edi, [edx + ecx + 0xf8]
mov esi, eax
add esi, ecx
xor edx, edx
mov eax, edi
div dword [esi + 0x3c]
mov eax, edi
test edx, edx
je 0x4027f0
mov esi, dword [esi + 0x3c]
xor edx, edx
div esi
inc eax
imul eax, esi
mov esi, dword [ecx + 0x3c]
lea edx, [ecx + eax]
mov eax, edx
sub eax, ecx
test ebx, ebx
mov dword [esp + 0x1c], edx
mov dword [esi + ecx + 0x54], eax
je 0x402937
lea ebx, [ebx]
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x402900
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x4028eb
mov esi, dword [ebp + 8]
add esi, eax
push ecx
mov dword [esp + 0x18], esi
call fcn.00402fd8
mov ecx, dword [ebx + 0x10]
mov edx, eax
mov eax, ecx
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x10]
mov edi, dword [esp + 0x18]
mov esi, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebx + 0x10]
lea eax, [ecx + edx - 1]
add esp, 4
cmp eax, edx
mov dword [esp + 0x10], edx
jbe 0x40287d
cmp byte [eax], 0
jne 0x40287d
dec eax
cmp eax, edx
ja 0x402873
sub eax, edx
mov ecx, eax
mov eax, dword [ebx + 0x10]
cmp ecx, eax
jbe 0x40288a
mov ecx, eax
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x3c]
add esi, eax
xor edx, edx
mov eax, ecx
div dword [esi + 0x3c]
test edx, edx
je 0x4028ac
mov esi, dword [esi + 0x3c]
xor edx, edx
mov eax, ecx
div esi
inc eax
imul eax, esi
mov ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x10], ecx
mov esi, dword [ebp + 8]
mov edx, eax
sub edx, esi
mov esi, dword [esp + 0x10]
mov dword [ebx + 0x14], edx
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, dword [ebx + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
push eax
call fcn.004034f5
mov edx, dword [esp + 0x20]
add esp, 4
jmp 0x402900
test eax, eax
je 0x402900
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x402900
mov eax, dword [ebp + 8]
mov ecx, edx
sub ecx, eax
mov dword [ebx + 0x14], ecx
mov edi, dword [ebp + 0x118]
mov eax, dword [ebp + 8]
inc edi
mov dword [ebp + 0x118], edi
mov esi, dword [eax + 0x3c]
movzx eax, word [esi + eax + 6]
mov ecx, edi
cmp ecx, eax
ja 0x402937
mov ecx, dword [ebp + 0x120]
add ecx, 0x28
mov ebx, ecx
test ebx, ebx
mov dword [ebp + 0x120], ecx
jne 0x402810
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4