joyce8/EMBER2024-capa huggingface dataset:
Function at 0x484350
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x10c]
push ebp
cmp dword [ebx + 0x7c], 2
mov ebp, dword [ebx]
je 0x484513
cmp byte [ebx + 0x231], 0
push esi
push edi
jne 0x4844c7
mov esi, dword [esp + 0x11c]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x98]
mov dword [esp + 0x14], pe_nt_image_headers32
push eax
push esi
call dword [sym.imp.WSOCK32.DLL_getpeername]
test eax, eax
je 0x4843cb
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.00495900
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebp
call fcn.00480fa0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
push pe_nt_image_headers32
lea eax, [esp + 0x18]
mov dword [esp + 0x14], pe_nt_image_headers32
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.WSOCK32.DLL_getsockname]
test eax, eax
je 0x484426
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.00495900
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebp
call fcn.00480fa0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
lea eax, [ebx + 0xd8]
push eax
lea esi, [ebx + 0xa8]
lea eax, [esp + 0x98]
push esi
push eax
call fcn.00484a00
add esp, 0xc
test al, al
jne 0x484472
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.00495900
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.00480fa0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
lea edi, [ebx + 0x48]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x10c]
push eax
lea eax, [ebx + 0xdc]
push eax
lea eax, [esp + 0x1c]
movsw word es:[edi], word [esi]
push eax
call fcn.00484a00
add esp, 0xc
test al, al
jne 0x4844c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.00495900
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.00480fa0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
mov edi, dword [ebx]
lea esi, [ebx + 0xa8]
add edi, 0x8654
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xb
movsw word es:[edi], word [esi]
mov edi, dword [ebx]
lea esi, [ebx + 0xdc]
add edi, 0x8688
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, dword [ebx]
mov eax, dword [ebx + 0xd8]
pop edi
pop esi
mov dword [ecx + 0x8684], eax
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x10c]
mov dword [ecx + 0x86b8], eax
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x484d70
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
xor eax, eax
push edi
mov edi, dword [esp + 0x20]
push 4
cmp byte [esi + 0x398], al
setne al
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WSOCK32.DLL_setsockopt]
test eax, eax
jns 0x484dba
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00481070
add esp, 0xc
pop edi
pop esi
add esp, 0x10
ret
push dword [esi + 0x39c]
mov dword [esp + 0x10], 1
call fcn.0048fa70
push dword [esi + 0x3a0]
imul eax, eax, 0x3e8
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], eax
call fcn.0048fa70
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x24]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.DLL_WSAIoctl]
test eax, eax
je 0x484e31
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.00481070
add esp, 0x10
pop edi
pop esi
add esp, 0x10
ret

Function at 0x484e40
Capabilities:
Set socket configuration

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 4
mov esi, dword [edi]
movzx eax, byte [esi + 0x29a]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 1
push 6
push dword [esp + 0x20]
call dword [sym.imp.WSOCK32.DLL_setsockopt]
test eax, eax
jns 0x484e8b
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
push eax
push edi
call fcn.00495900
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00481070
add esp, 0x14
pop edi
pop esi
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00481070
add esp, 8
pop edi
pop esi
ret
Function at 0x48bc70
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov bl, byte [esi]
test bl, bl
je 0x48bd21
mov cl, byte [edi]
test cl, cl
je 0x48bd21
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x48bc9a
jmp dword [eax*4 + 0x48bd48]
mov bl, 0x41
jmp case.default.0x48bc9a
mov bl, 0x42
jmp case.default.0x48bc9a
mov bl, 0x43
jmp case.default.0x48bc9a
mov bl, 0x44
jmp case.default.0x48bc9a
mov bl, 0x45
jmp case.default.0x48bc9a
mov bl, 0x46
jmp case.default.0x48bc9a
mov bl, 0x47
jmp case.default.0x48bc9a
mov bl, 0x48
jmp case.default.0x48bc9a
mov bl, 0x49
jmp case.default.0x48bc9a
mov bl, 0x4a
jmp case.default.0x48bc9a
mov bl, 0x4b
jmp case.default.0x48bc9a
mov bl, 0x4c
jmp case.default.0x48bc9a
mov bl, 0x4d
jmp case.default.0x48bc9a
mov bl, 0x4e
jmp case.default.0x48bc9a
mov bl, 0x4f
jmp case.default.0x48bc9a
mov bl, 0x50
jmp case.default.0x48bc9a
mov bl, 0x51
jmp case.default.0x48bc9a
mov bl, 0x52
jmp case.default.0x48bc9a
mov bl, 0x53
jmp case.default.0x48bc9a
mov bl, 0x54
jmp case.default.0x48bc9a
mov bl, 0x55
jmp case.default.0x48bc9a
mov bl, 0x56
jmp case.default.0x48bc9a
mov bl, 0x57
jmp case.default.0x48bc9a
mov bl, 0x58
jmp case.default.0x48bc9a
mov bl, 0x59
jmp case.default.0x48bc9a
mov bl, 0x5a
push ecx
call fcn.0048bf20
add esp, 4
cmp bl, al
jne 0x48bd21
mov bl, byte [esi + 1]
inc esi
inc edi
test bl, bl
jne 0x48bc85
movzx eax, byte [esi]
push eax
call fcn.0048bf20
movzx ecx, byte [edi]
mov bl, al
push ecx
call fcn.0048bf20
add esp, 8
xor ecx, ecx
cmp bl, al
sete cl
pop edi
pop esi
mov eax, ecx
pop ebx
ret
Function at 0x48bdb0
Capabilities:
Parse pe header

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
mov bl, byte [edi]
test bl, bl
je 0x48be76
lea ebx, [ebx]
mov cl, byte [ebp]
test cl, cl
je 0x48be76
test esi, esi
je 0x48be7a
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x48bdee
jmp dword [eax*4 + 0x48beac]
mov bl, 0x41
jmp case.default.0x48bdee
mov bl, 0x42
jmp case.default.0x48bdee
mov bl, 0x43
jmp case.default.0x48bdee
mov bl, 0x44
jmp case.default.0x48bdee
mov bl, 0x45
jmp case.default.0x48bdee
mov bl, 0x46
jmp case.default.0x48bdee
mov bl, 0x47
jmp case.default.0x48bdee
mov bl, 0x48
jmp case.default.0x48bdee
mov bl, 0x49
jmp case.default.0x48bdee
mov bl, 0x4a
jmp case.default.0x48bdee
mov bl, 0x4b
jmp case.default.0x48bdee
mov bl, 0x4c
jmp case.default.0x48bdee
mov bl, 0x4d
jmp case.default.0x48bdee
mov bl, 0x4e
jmp case.default.0x48bdee
mov bl, 0x4f
jmp case.default.0x48bdee
mov bl, 0x50
jmp case.default.0x48bdee
mov bl, 0x51
jmp case.default.0x48bdee
mov bl, 0x52
jmp case.default.0x48bdee
mov bl, 0x53
jmp case.default.0x48bdee
mov bl, 0x54
jmp case.default.0x48bdee
mov bl, 0x55
jmp case.default.0x48bdee
mov bl, 0x56
jmp case.default.0x48bdee
mov bl, 0x57
jmp case.default.0x48bdee
mov bl, 0x58
jmp case.default.0x48bdee
mov bl, 0x59
jmp case.default.0x48bdee
mov bl, 0x5a
push ecx
call fcn.0048bf20
add esp, 4
cmp bl, al
jne 0x48be76
mov bl, byte [edi + 1]
inc edi
dec esi
inc ebp
test bl, bl
jne 0x48bdd0
test esi, esi
jne 0x48be84
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
movzx eax, byte [edi]
push eax
call fcn.0048bf20
movzx ecx, byte [ebp]
mov bl, al
push ecx
call fcn.0048bf20
add esp, 8
xor ecx, ecx
cmp bl, al
sete cl
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
ret

Function at 0x48bf20
Capabilities:
Parse pe header

Disassembly:
mov cl, byte [esp + 4]
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x48bf2f
jmp dword [eax*4 + 0x48bf88]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
mov al, cl
ret
Function at 0x48bff0
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, dword [esp + 0x10]
cmp esi, 1
jb 0x48c09c
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
sub edi, edx
lea esp, [esp]
mov cl, byte [edx]
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x48c01d
jmp dword [eax*4 + 0x48c0a0]
mov cl, 0x41
jmp case.default.0x48c01d
mov cl, 0x42
jmp case.default.0x48c01d
mov cl, 0x43
jmp case.default.0x48c01d
mov cl, 0x44
jmp case.default.0x48c01d
mov cl, 0x45
jmp case.default.0x48c01d
mov cl, 0x46
jmp case.default.0x48c01d
mov cl, 0x47
jmp case.default.0x48c01d
mov cl, 0x48
jmp case.default.0x48c01d
mov cl, 0x49
jmp case.default.0x48c01d
mov cl, 0x4a
jmp case.default.0x48c01d
mov cl, 0x4b
jmp case.default.0x48c01d
mov cl, 0x4c
jmp case.default.0x48c01d
mov cl, 0x4d
jmp case.default.0x48c01d
mov cl, 0x4e
jmp case.default.0x48c01d
mov cl, 0x4f
jmp case.default.0x48c01d
mov cl, 0x50
jmp case.default.0x48c01d
mov cl, 0x51
jmp case.default.0x48c01d
mov cl, 0x52
jmp case.default.0x48c01d
mov cl, 0x53
jmp case.default.0x48c01d
mov cl, 0x54
jmp case.default.0x48c01d
mov cl, 0x55
jmp case.default.0x48c01d
mov cl, 0x56
jmp case.default.0x48c01d
mov cl, 0x57
jmp case.default.0x48c01d
mov cl, 0x58
jmp case.default.0x48c01d
mov cl, 0x59
jmp case.default.0x48c01d
mov cl, 0x5a
mov byte [edi + edx], cl
mov al, byte [edx]
inc edx
test al, al
je 0x48c09b
dec esi
jne 0x48c010
pop edi
pop esi
ret
Function at 0x491b00
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
push dword [esp + 0x108]
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x491b49
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x491b49
lea eax, [esp]
push eax
call dword [0x4fb36c]
add esp, 4
add esp, 0x104
ret
xor eax, eax
add esp, 0x104
ret
Function at 0x496990
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebp
xor ebp, ebp
mov dword [esp + 4], ebp
mov dword [eax], ebp
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.DLL_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x496b23
push ebx
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x496b0d
push esi
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x4969df
lea ebx, [eax + 0xe]
jmp 0x4969eb
cmp eax, 0x17
jne 0x496a9a
lea ebx, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x496a9a
mov eax, dword [edi + 0x10]
test eax, eax
je 0x496a9a
cmp eax, ebx
jb 0x496a9a
push 0x20
call dword [0x4fb360]
mov esi, eax
add esp, 4
test esi, esi
je 0x496b02
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push ebx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x4fb360]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x496af1
push ebx
push dword [edi + 0x18]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x496a85
push eax
call dword [0x4fb36c]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x496ad7
test ebp, ebp
jne 0x496a8b
mov ebp, esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x496a96
mov dword [eax + 0x1c], esi
mov dword [esp + 0x10], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x4969d2
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop esi
test eax, eax
je 0x496ab9
push eax
call dword [sym.imp.WS2_32.DLL_freeaddrinfo]
test ebx, ebx
je 0x496b09
push ebp
call fcn.00496950
mov eax, dword [esp + 0x2c]
add esp, 4
xor ebp, ebp
mov dword [eax], ebp
mov eax, ebx
pop edi
pop ebx
pop ebp
add esp, 0xc
ret
push dword [esi + 0x18]
mov ebx, 8
call dword [0x4fb364]
push esi
call dword [0x4fb364]
add esp, 8
jmp 0x496aa9
push esi
mov ebx, 8
call dword [0x4fb364]
add esp, 4
jmp 0x496aa9
mov ebx, 8
jmp 0x496aa9
test ebp, ebp
jne 0x496b19
mov ebx, 0x2af9
push ebx
call dword [sym.imp.WSOCK32.DLL_WSASetLastError]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], ebp
mov eax, ebx
pop ebx
pop ebp
add esp, 0xc
ret

Function at 0x496f70
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x264], 2
je fcn.00496f20
mov al, 1
ret
Function at 0x41df98
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4257d8
push ebx
push esi
call fcn.00425704
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00425698
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x425785
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4257d7
push edi
push eax
call fcn.004241d0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4257a5
call fcn.0042421e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4257d6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00425698
add esp, 0x20
test eax, eax
jne 0x4257c4
push edi
call fcn.0042421e
jmp 0x4257cc
push ebx
call fcn.0042421e
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4269e7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f9a0
push 0x42f998
push str.FlsAlloc
push 0x1f
call fcn.004268a6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x426a1b
push dword [ebp + 8]
mov ecx, esi
call dword [0x42d144]
call esi
jmp 0x426a21
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x426a65
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f9b0
push 0x42f9a8
push str.FlsGetValue
push 0x21
call fcn.004268a6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x426a9c
push dword [ebp + 8]
mov ecx, esi
call dword [0x42d144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x426aa4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f9b8
push 0x42f9b0
push str.FlsSetValue
push 0x22
call fcn.004268a6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x426ade
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42d144]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42bdb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42bddd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42bddd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4072ad
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x46bc7c], 0
jne 0x4072eb
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4072c1
mov dword [ecx*4 + 0x46bc78], eax
inc ecx
cmp ecx, 0x100
jl 0x4072bc
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x407318
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46bc78]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072f9
not eax
pop ebp
ret 0xc

Function at 0x4059f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426d76
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x45190c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebp + 0x10]
mov dword [ebx], 0x428da8
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x18], edx
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], edx
mov dword [ebx + 0x28], edx
or dword [ebx + 0x2c], 0xffffffff
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x40], edx
mov dword [ebx + 0x44], edx
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x4c], edx
mov dword [ebx + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x60], ecx
mov eax, dword [ecx + 4]
and dword [ebx + 0x8c], 0xffffffc0
and byte [ebx + 0x91], 0x80
or dword [ebx + 0x94], 0xffffffff
or dword [ebx + 0x98], 0xffffffff
mov dword [ebx + 0x64], eax
xor eax, eax
inc eax
mov dword [ebx + 0x68], edx
mov dword [ebx + 0x6c], edx
mov dword [ebx + 0x70], edx
mov dword [ebx + 0x74], edx
mov byte [ebx + 0x90], 0x4f
mov dword [ebx + 0x9c], eax
mov dword [ebx + 0xa0], eax
mov dword [ebx + 0xa4], edx
mov dword [ebx + 0xa8], edx
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x405acb
mov eax, dword [ecx + 0x24]
mov dword [ebx + 0x78], eax
mov dword [ecx + 0x24], ebx
mov eax, dword [ebx + 0x5c]
lea edi, [ebx + 0x58]
push 1
push edx
push edi
mov dword [eax + 4], ebx
lea esi, [ebx + 0x54]
mov ecx, dword [ebx + 0x60]
push esi
push ecx
mov eax, dword [ecx]
call dword [eax + 0x18]
push 4
push dword [esi]
mov esi, dword [0x4280f8]
push 6
call esi
push 8
push dword [edi]
mov dword [ebx + 0x7c], eax
push 2
call esi
mov ecx, dword [ebx + 0x7c]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x88], eax
mov eax, ebx
mov dword [ebx + 0x84], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4010b0
Capabilities:
Delete file
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7dc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push str.RESFILE
push eax
push 0
mov esi, edx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40110a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, 0x414f84
mov ecx, esi
call fcn.00401000
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401754
mov esp, ebp
pop ebp
ret
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push 0
mov dword [ebp - 0x7dc], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40114f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, 0x414f94
mov ecx, esi
call fcn.00401000
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401754
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x414fa4
mov edi, eax
mov dword [ebp - 0x7d8], 0
lea eax, [ebp - 0x7d8]
push ebx
push eax
call fcn.00404686
add esp, 0xc
test eax, eax
je 0x4011ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, 0x414fac
mov ecx, esi
call fcn.00401000
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401754
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x7d8]
test eax, eax
jne 0x4011f9
push 0x414fbc
push esi
lea eax, [ebp - 0x7d4]
push 0x414f44
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x7d4]
push 0x10
push 0x414f3c
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401754
mov esp, ebp
pop ebp
ret
push eax
push dword [ebp - 0x7dc]
push 1
push edi
call fcn.00404bce
push dword [ebp - 0x7d8]
call fcn.004048d9
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.00401754
mov esp, ebp
pop ebp
ret
Function at 0x401f84
Capabilities:
Parse pe header

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