joyce8/EMBER2024-capa huggingface dataset:
Function at 0x607940
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x2f0], 2
je fcn.006078f0
mov al, 1
ret

Function at 0x608050
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov edx, dword [esp + 8]
sub esp, 0x80
xor eax, eax
push ebx
mov ebx, dword [esp + 0x88]
push ebp
push esi
mov esi, 0x1e4
mov ecx, dword [ebx + 0x1c4]
cmp edx, ecx
push edi
sete al
lea eax, [eax*4 + 0x1c0]
mov ebp, dword [eax + ebx]
mov eax, 0x1f4
cmove esi, eax
mov eax, dword [ebx + 0x2e8]
add esi, ebx
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x608130
xor eax, eax
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x1d4]
cmp dword [eax + ebx], 0x607d60
jne 0x608130
cmp dword [esi], 0
je 0x6080c1
test edi, edi
je 0x608130
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.0060f0a0
add esp, 0x14
cmp eax, 0xffffffff
je 0x608130
test al, 1
je 0x608130
cmp dword [esi], 0
jne 0x60810a
mov eax, dword [ebx]
mov eax, dword [eax + 0x8fc]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x6f7ec8]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov ecx, dword [esi]
test ecx, ecx
je 0x608129
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x608130
add dword [esi + 8], eax
jmp 0x608130
mov dword [esi + 4], 0
push 0
push dword [esp + 0xa4]
push dword [esp + 0xa4]
push ebp
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
jne 0x6081ba
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x608179
mov ecx, dword [esp + 0xa4]
lea eax, [edi + 0x52]
pop edi
pop esi
pop ebp
mov dword [ecx], 0
pop ebx
add esp, 0x80
ret
push pe_nt_image_headers32
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00628bd0
push eax
push str.Send_failure:__s
push dword [ebx]
call fcn.00607af0
mov eax, dword [ebx]
add esp, 0x18
mov ecx, dword [esp + 0xa4]
mov dword [eax + 0xd04], esi
mov eax, 0x37
mov dword [ecx], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
mov ecx, dword [esp + 0xa4]
xor eax, eax
mov dword [ecx], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
Function at 0x622890
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1000
call fcn.0063c060
push dword [esp + 0x1004]
call fcn.006602ff
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x6228dc
push 0x1000
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x6228dc
lea eax, [esp]
push eax
call dword [0x6f7ed4]
add esp, 4
add esp, 0x1000
ret
xor eax, eax
add esp, 0x1000
ret

Function at 0x622f40
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push esi
xor esi, esi
mov dword [esp + 4], esi
mov dword [eax], esi
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 0x6230f2
push ebx
mov ebx, dword [esp + 0xc]
push edi
test ebx, ebx
je 0x6230dc
push ebp
mov eax, dword [ebx + 4]
cmp eax, 2
jne 0x622f8f
lea ebp, [eax + 0xe]
jmp 0x622f9b
cmp eax, 0x17
jne 0x623049
lea ebp, [eax + 5]
cmp dword [ebx + 0x18], 0
je 0x623049
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x623049
cmp eax, ebp
jb 0x623049
push 0x20
call dword [0x6f7ec8]
mov edi, eax
add esp, 4
test edi, edi
je 0x6230d1
mov ecx, dword [ebx]
mov dword [edi], ecx
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
mov ecx, dword [ebx + 8]
mov dword [edi + 8], ecx
mov eax, dword [ebx + 0xc]
push ebp
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ebp
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
call dword [0x6f7ec8]
add esp, 4
mov dword [edi + 0x18], eax
test eax, eax
je 0x6230c0
push ebp
push dword [ebx + 0x18]
push eax
call fcn.00541970
mov eax, dword [ebx + 0x14]
add esp, 0xc
test eax, eax
je 0x623035
push eax
call dword [0x6f7ed4]
add esp, 4
mov dword [edi + 0x14], eax
test eax, eax
je 0x6230a6
mov eax, dword [esp + 0x10]
test esi, esi
cmove esi, edi
test eax, eax
je 0x623045
mov dword [eax + 0x1c], edi
mov dword [esp + 0x10], edi
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x622f82
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop ebp
test eax, eax
je 0x623068
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x6230d8
test esi, esi
je 0x623095
push dword [esi + 0x18]
call dword [0x6f7ecc]
push dword [esi + 0x14]
call dword [0x6f7ecc]
mov edi, dword [esi + 0x1c]
push esi
call dword [0x6f7ecc]
add esp, 0xc
mov esi, edi
test edi, edi
jne 0x623070
mov eax, dword [esp + 0x28]
xor esi, esi
pop edi
mov dword [eax], esi
mov eax, ebx
pop ebx
pop esi
add esp, 0xc
ret
push dword [edi + 0x18]
mov ebx, 8
call dword [0x6f7ecc]
push edi
call dword [0x6f7ecc]
add esp, 8
jmp 0x623058
push edi
mov ebx, 8
call dword [0x6f7ecc]
add esp, 4
jmp 0x623058
mov ebx, 8
jmp 0x623058
test esi, esi
jne 0x6230e8
mov ebx, 0x2af9
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], esi
mov eax, ebx
pop ebx
pop esi
add esp, 0xc
ret
Function at 0x62caf0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x30
push esi
mov esi, dword [sym.imp.WS2_32.dll_socket]
push edi
push 6
push 1
push 2
mov dword [esp + 0x18], 0x10
mov dword [esp + 0x14], 1
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x62cb22
pop edi
or eax, eax
pop esi
add esp, 0x30
ret
push ebx
xorps xmm0, xmm0
mov eax, 2
push 0x7f000001
movlpd qword [esp + 0x20], xmm0
mov word [esp + 0x18], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x18], eax
xor eax, eax
push 4
mov word [esp + 0x1a], ax
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push edi
mov dword [ebx + 4], 0xffffffff
mov dword [ebx], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x62ccb3
push 0x10
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x62ccb3
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x62ccb3
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x62ccb3
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x62ccb3
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x62ccb3
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x62ccb3
push ebx
push 0x6aa820
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.0061d4a0
lea esi, [esp + 0x34]
add esp, 0x10
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x62cc20
push 0
sub esi, ecx
lea eax, [esp + 0x28]
push esi
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x62ccb3
push 0
push 0xc
lea eax, [esp + 0x38]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jne 0x62ccb3
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
sub esi, 4
jb 0x62cc71
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x62cc76
add ecx, 4
add edx, 4
sub esi, 4
jae 0x62cc60
cmp esi, 0xfffffffc
je 0x62cca3
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x62ccb3
cmp esi, 0xfffffffd
je 0x62cca3
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x62ccb3
cmp esi, 0xfffffffe
je 0x62cca3
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x62ccb3
cmp esi, 0xffffffff
je 0x62cca3
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x62ccb3
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x30
ret
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push edi
call esi
push dword [ebx]
call esi
push dword [ebx + 4]
call esi
pop ebx
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x30
ret
Function at 0x63c1a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x63c1cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x63c1cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x65421f
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6f63a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x6b5738
push esi
call fcn.00538091
pop ecx
pop ecx
test eax, eax
jne 0x65424d
xor al, al
jmp 0x6542ca
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.00653eb2
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x654287
push dword [ebp - 0x210]
call fcn.0063c69f
xor al, al
jmp 0x6542c8
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x65428d
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x6542ad
push edx
call fcn.00654156
pop ecx
test al, al
je 0x654278
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x6542bb
mov bl, 1
push dword [ebp - 0x210]
call fcn.0063c69f
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0052bc5f
leave
ret
Function at 0x6632cd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0063c060
mov eax, dword [0x6f63a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0053e3d3
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x66330f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x66346b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0063bcd0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x6fb1f8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.005410a4
mov ecx, dword [esi*4 + 0x6fb1f8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x663464
cmp eax, dword [ecx + edi + 0x24]
jne 0x663464
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x663464
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005410a4
add esp, 0x14
test edx, edx
jl 0x663464
jg 0x6633da
test eax, eax
jb 0x663464
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x663464
jl 0x6633f4
cmp dword [ebp - 0x1008], eax
ja 0x663464
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x663412
test ebx, ebx
je 0x66344b
cmp ecx, edi
jae 0x66344b
mov al, byte [ecx]
cmp al, 0xd
jne 0x66342c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x663438
cmp byte [ecx + 1], 0xa
jne 0x663438
inc ecx
jmp 0x663438
movzx eax, al
movsx eax, byte [eax + 0x6f6b00]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x663412
cmp edx, ebx
jne 0x663412
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x663469
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0052bc5f
leave
ret
Function at 0x667e1e
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00667c8d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x667f8d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x667f8d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x667f42
jg 0x667e7a
test eax, eax
je 0x667f38
push 1
push 0x1000
call fcn.0053162c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x667e9d
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x667f2f
push 0x8000
push ebx
call fcn.0052c77e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x667ec6
jg 0x667ec1
cmp ecx, 0x1000
jb 0x667ec6
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0053f054
add esp, 0x10
cmp eax, 0xffffffff
je 0x667f0b
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x667ec1
jl 0x667ef2
test ecx, ecx
jne 0x667eb3
push dword [ebp - 0xc]
push ebx
call fcn.0052c77e
push esi
call fcn.00530074
add esp, 0xc
xor ebx, ebx
jmp 0x667f9b
cmp byte [edi + 0x24], 0
je 0x667f22
cmp dword [edi + 0x20], 5
jne 0x667f22
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x667f2d
mov ebx, dword [edi + 0x18]
jmp 0x667f2f
xor ebx, ebx
push esi
call fcn.00530074
pop ecx
jmp 0x667f9b
test ecx, ecx
jg 0x667f04
jl 0x667f42
test eax, eax
jae 0x667f04
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005410c2
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x667f62
cmp byte [edi + 0x1c], 0
je 0x667f04
jmp 0x667f93
push ebx
call fcn.00532fed
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x667f04
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x667f9b
cmp byte [edi + 0x1c], 0
je 0x667f98
mov ebx, dword [edi + 0x18]
jmp 0x667f9b
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.005410c2
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x66e5d0
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6f63a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x66e613
call fcn.00532606
mov dword [eax], 0xf
call fcn.00532619
mov dword [eax], 0xd
call fcn.005312d1
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052bc5f
leave
ret
test eax, eax
jne 0x66e61a
inc eax
jmp 0x66e607
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x66e605
xor eax, eax
cmp ecx, 1
setne al
jmp 0x66e607
Function at 0x10001f8b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1001c7f1
call fcn.1001c3b8
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
test edi, edi
je 0x1000219d
mov edx, edi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x10001fdd
sub edx, ecx
sar edx, 1
inc edx
push ecx
lea ecx, [ebp - 0x41c]
mov dword [ebp - 0x41c], edx
call fcn.10001357
test eax, eax
js 0x1000219d
mov esi, dword [ebp - 0x41c]
cmp esi, 0x400
jg 0x1000202e
mov ecx, esi
call fcn.10001387
test al, al
je 0x1000202e
mov eax, esi
call fcn.1001c519
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x1000203a
push esi
lea ecx, [ebp - 0x428]
call fcn.1000b965
push 3
push esi
mov edx, edi
mov ecx, eax
call fcn.1000b965
mov edi, eax
test edi, edi
je 0x10002197
push 0x60
push ebx
push edi
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov esi, eax
mov dword [ebp - 0x41c], esi
test esi, esi
jne 0x10002088
push 2
push ebx
push edi
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov esi, eax
mov dword [ebp - 0x41c], eax
test esi, esi
jne 0x10002088
call fcn.10001543
mov edi, eax
jmp 0x1000217c
push dword [ebp - 0x420]
push dword [ebp - 0x424]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x100020ab
call fcn.10001543
jmp 0x1000216f
push edi
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x100020a1
push edi
push esi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x424], edi
lea ecx, [edi + 1]
cmp ecx, edi
jae 0x100020de
mov edi, 0x8007000e
jmp 0x10002171
mov byte [ebp - 4], 2
call fcn.10005d4e
cmp eax, 0x400
jbe 0x100020fc
push eax
lea ecx, [ebp - 0x418]
call fcn.1000b965
jmp 0x10002108
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
jmp 0x1000212c
cmp dword [ebp - 0x418], 0
je 0x100020d4
mov ecx, dword [ebp - 0x418]
mov edx, edi
push edi
push dword [ebp - 0x420]
call fcn.1000b965
pop ecx
pop ecx
mov ecx, eax
call fcn.100014e5
mov eax, dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
push dword [ebp + 0x14]
mov byte [eax + edi], bl
push dword [ebp - 0x418]
call fcn.1000b965
mov edi, eax
test esi, esi
je 0x1000217c
push esi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x100021b7
lea ecx, [ebp - 0x418]
call fcn.100058b0
jmp 0x100021b7
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
cmp ebx, eax
je 0x100021b2
lea ecx, [ebp - 0x418]
call fcn.100058b0
mov edi, 0x8007000e
lea ecx, [ebp - 0x428]
call fcn.10005668
mov eax, edi
lea esp, [ebp - 0x440]
call fcn.1001c309
ret 0x10
Function at 0x1000b965
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x1000b974
pop dword [ebp - 0x34]
mov eax, 0x6399b565
add eax, 0xac67040f
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xbe44fca3
add dword [ebp - 0x44], 0x900d48a8
mov dword [ebp - 0x40], 0xbfe529d
add dword [ebp - 0x40], 0x2634f9a8
mov dword [ebp - 0x3c], 0x6275ec4e
add dword [ebp - 0x3c], 0xe9d657e0
mov dword [ebp - 0x38], 0x831af2de
add dword [ebp - 0x38], 0x7ce50d22
lea eax, [ebp - 0x44]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x2b69bc20
add dword [ebp - 0x44], 0x4908ad36
mov dword [ebp - 0x40], 0xfb69c102
add dword [ebp - 0x40], 0x4602a073
mov dword [ebp - 0x3c], 0x821b93c6
add dword [ebp - 0x3c], 0xe153d8a6
mov dword [ebp - 0x38], 0x59a73206
add dword [ebp - 0x38], 0xa658cdfa
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0x26564bdc
sub eax, 0x16546bac
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x3f479
push 0
call eax
mov ecx, 0x73591df0
sub ecx, 0x7358ca8d
mov esi, eax
mov edi, 0x1002dc00
add edi, dword [ebp - 0x34]
mov edx, 0x8be3fd42
sub edx, 0xcb04f42f
add dword [ebp - 8], edi
mov ebx, dword [edi]
add ebx, edx
sub dword [ebp - 4], ecx
mov dword [esi], ebx
xor dword [ebp - 0x18], 0x885a56d5
add esi, 4
add edi, 0x467232a
sub edi, 0x4672326
loop 0x1000ba8b
add eax, 0xcab0a81c
add eax, 0x35509843
mov ebx, eax
add eax, 0x3de748fc
add eax, 0xc218b709
mov ecx, 0x10000000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x497137
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401e42
mov eax, dword [0x4f2140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00406258
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x497179
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4972d5
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004063b6
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4f5cf0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0040344a
mov ecx, dword [esi*4 + 0x4f5cf0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4972ce
cmp eax, dword [edi + ecx + 0x24]
jne 0x4972ce
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4972ce
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040344a
add esp, 0x14
test edx, edx
jl 0x4972ce
jg 0x497244
test eax, eax
jb 0x4972ce
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4972ce
jl 0x49725e
cmp dword [ebp - 0x1008], eax
ja 0x4972ce
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49727c
test ebx, ebx
je 0x4972b5
cmp ecx, edi
jae 0x4972b5
mov al, byte [ecx]
cmp al, 0xd
jne 0x497296
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4972a2
cmp byte [ecx + 1], 0xa
jne 0x4972a2
inc ecx
jmp 0x4972a2
movzx eax, al
movsx eax, byte [eax + 0x4f24a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49727c
cmp edx, ebx
jne 0x49727c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4972d3
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040320b
leave
ret
Function at 0x497a14
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4f5cf0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x497a54
cmp byte [ebx], 0xa
jne 0x497a54
or byte [eax + edi + 0x28], 4
jmp 0x497a59
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x497b57
mov al, byte [edx]
cmp al, 0x1a
je 0x497b39
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x497a88
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x497aad
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x497ab7
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x497a6a
jmp 0x497b57
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x497b34
cmp dword [ebp - 0xc], 0
je 0x497b34
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4f5cf0]
test byte [eax + edi + 0x28], 0x48
je 0x497b0e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x497af9
mov byte [esi], dl
jmp 0x497b0a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4f5cf0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x497b57
cmp byte [ebp - 1], 0xa
jne 0x497b1d
cmp esi, ebx
jne 0x497b1d
mov byte [esi], 0xa
jmp 0x497b56
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004019b5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x497b57
mov byte [esi], 0xd
jmp 0x497b56
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4f5cf0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x497b53
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x497b57
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret