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

Disassembly:
sub esp, 0x8c
mov eax, dword [0x49a400]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x9c]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
mov ebx, dword [edi + 0x18]
mov esi, dword [ebx + 0x1a4]
push esi
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x45deab
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x80
push eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [esp + 0xc], eax
jmp 0x45deaf
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
jne 0x45dedf
push str.Error_accept__ing_server_connect
push edi
call fcn.0043cc60
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0047d5a0
add esp, 0x8c
ret
push str.Connection_accepted_from_server
push edi
call fcn.0043cd30
mov byte [ebx + 0x24d], 0
push 1
push dword [esp + 0x18]
call fcn.004755d0
lea eax, [esp + 0x1c]
push eax
push 1
push ebx
push edi
call fcn.0046f330
add esp, 0x20
test eax, eax
jne 0x45df79
cmp dword [edi + 0x19c], eax
je 0x45df77
push 1
push edi
call fcn.0042ae40
mov eax, dword [edi + 0x19c]
push 1
push dword [esp + 0x18]
push dword [edi + 0x1a0]
call eax
push 0
push edi
mov esi, eax
call fcn.0042ae40
add esp, 0x1c
test esi, esi
je 0x45df77
push 1
push edi
call fcn.0043c300
push 1
push ebx
push edi
call fcn.0043c100
add esp, 0x14
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0047d5a0
add esp, 0x8c
ret
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047d5a0
add esp, 0x8c
ret
Function at 0x460160
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 + 0x18]
cmp eax, 0x64
jb 0x460190
push str.Couldnt_set_desired_mode
push esi
call fcn.0043cc60
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
ret
cmp ecx, 0xc8
je 0x4601a7
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.0043cd30
add esp, 0xc
mov al, byte [esp + 0x18]
push ebp
cmp al, 0x13
jne 0x4601c1
push ebx
push esi
call fcn.0045fe70
add esp, 8
mov edi, eax
pop ebp
pop edi
pop esi
pop ebx
ret
cmp al, 0x14
jne 0x4602cd
mov edi, dword [esi + 0x18]
xor ebx, ebx
cmp byte [esi + 0x4b8], 2
mov dword [esp + 0x18], edi
jne 0x46023e
mov eax, dword [esi + 0x124]
mov eax, dword [eax]
test eax, eax
je 0x46023e
push 3
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
push ecx
push ebx
push eax
call fcn.00425ed0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4602f8
push 0x2f
push dword [esp + 0x18]
call sub.VCRUNTIME140.dll_strrchr
add esp, 8
test eax, eax
je 0x46022d
mov ebx, dword [esp + 0x14]
mov ecx, 1
sub eax, ebx
cmovne ecx, eax
mov byte [ecx + ebx], 0
jmp 0x46023a
push dword [esp + 0x14]
call dword [0x49a004]
add esp, 4
mov edi, dword [esp + 0x18]
mov ecx, dword [esi + 0x4ec]
test ecx, ecx
jne 0x46025c
cmp byte [esi + 0xd26], 0
mov ecx, str.NLST
mov eax, str.LIST
cmove ecx, eax
mov edx, 0x49082a
test ebx, ebx
mov eax, edx
cmovne eax, ebx
push eax
mov eax, 0x490b68
cmove eax, edx
push eax
push ecx
push 0x485e90
call fcn.00442220
push ebx
mov ebp, eax
call dword [0x49a004]
add esp, 0x14
test ebp, ebp
jne 0x460299
mov edi, 0x1b
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret
push ebp
push 0x483d04
lea eax, [edi + 0x3f0]
push eax
push esi
call fcn.00479880
push ebp
mov edi, eax
call dword [0x49a004]
add esp, 0x14
test edi, edi
jne 0x4602f8
mov eax, dword [esi + 0x18]
pop ebp
mov byte [eax + 0x49e], 0x1f
mov eax, edi
pop edi
pop esi
pop ebx
ret
cmp al, 0x15
jne 0x4602e5
push 0xd
push 1
push esi
call fcn.0045f9d0
add esp, 0xc
mov edi, eax
pop ebp
pop edi
pop esi
pop ebx
ret
cmp al, 0x16
jne 0x4602f8
push 0xe
push 1
push esi
call fcn.0045f9d0
add esp, 0xc
mov edi, eax
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x46f660
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x49ad10]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x46f6b1
push 3
push 2
push eax
push eax
push 6
call fcn.004716e0
add esp, 0x14
test al, al
je 0x46f6a5
mov dword [0x49ad10], 2
add esp, 0xc
ret
mov dword [0x49ad10], 1
jmp 0x46f6b6
cmp eax, 2
je 0x46f6fc
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 0x46f6e1
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jg 0x46f6fc
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 0x470200
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x104
mov eax, dword [0x49a400]
xor eax, esp
mov dword [esp + 0x100], eax
mov ecx, dword [esp + 0x10c]
push ebx
mov ebx, dword [esp + 0x10c]
push ebp
push esi
push edi
mov eax, dword [ebx]
mov edi, dword [esp + 0x124]
push 0
push dword [esp + 0x124]
mov ebp, dword [eax + 8]
push ecx
mov dword [edi], 0
push dword [ebp + 0x98]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4702a0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x47026d
mov dword [edi], 0x51
jmp 0x47029d
push 0x100
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00426a70
push eax
push str.Recv_failure:__s
push dword [ebx + 4]
call fcn.0043cc60
mov eax, dword [ebx + 4]
add esp, 0x18
mov dword [eax + 0x8d8], esi
mov dword [edi], 0x38
or esi, 0xffffffff
push dword [edi]
push esi
push dword [ebp + 0x98]
push dword [esp + 0x12c]
push str.nw_in_read_len_zu__fd_d______d__err_d
push dword [ebx]
push dword [ebx + 4]
call fcn.0043ce00
mov ecx, dword [esp + 0x12c]
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0047d5a0
add esp, 0x104
ret

Function at 0x4702e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x49a400]
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]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x260]
test dword [eax + 0x44], 0x800
jne 0x47040d
push 0x80
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0x80
push 0
push eax
call sub.VCRUNTIME140.dll_memset
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 0x47039a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x8c]
push 0x100
push eax
push esi
call fcn.00426a70
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0043cc60
add esp, 0x1c
mov eax, 2
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.0047d5a0
add esp, 0x188
ret
lea eax, [esi + 0x11c]
push eax
lea eax, [esi + 0xea]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
call fcn.0043f0d0
add esp, 0x10
test al, al
jne 0x47040d
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push edi
call esi
mov edi, dword [eax]
call esi
mov esi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push edi
call fcn.00426a70
push eax
push dword [esi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0043cc60
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.0047d5a0
add esp, 0x188
ret
mov ecx, dword [esp + 0x18c]
xor eax, eax
pop esi
pop ebx
xor ecx, esp
call fcn.0047d5a0
add esp, 0x188
ret
Function at 0x475e10
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x49a400]
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 dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x475e90
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00426b60
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.0043cc60
push esi
call dword [0x49a004]
add esp, 0x20
lea eax, [ebx + 0x4d]
jmp 0x475ff0
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 0x475eea
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00426b60
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.0043cc60
push 0
mov esi, 0x4d
call dword [0x49a004]
add esp, 0x20
jmp 0x475fe1
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x475f2a
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00426b60
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.0043cc60
add esp, 0x1c
mov esi, 0x4d
jmp 0x475fcd
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x475f58
jg 0x475f3e
cmp edi, 0x100000
jbe 0x475f58
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebp
call fcn.0043cc60
add esp, 0xc
mov esi, 0x4d
jmp 0x475fcd
lea eax, [edi + 1]
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x475f70
lea esi, [eax + 0x1b]
jmp 0x475fcd
test edi, edi
je 0x475fb4
nop dword [eax]
nop dword [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 0x47600d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x476009
add esi, eax
cmp esi, edi
jb 0x475f80
push ebp
push dword [esp + 0x18]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.00475c10
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x49a004]
add esp, 4
push dword [esp + 0x20]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0047d5a0
add esp, 0x120
ret
mov edi, esi
jmp 0x475fb4
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00426b60
push eax
push dword [esp + 0x24]
push str.schannel:_failed_to_read_from_CA_file__s:__s
push ebp
call fcn.0043cc60
add esp, 0x1c
mov esi, 0x4d
jmp 0x475fcd
Function at 0x47c330
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 [section..data]
mov esi, eax
add esp, 4
test esi, esi
jne 0x47c35b
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 0x47c3aa
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 0x47c3b2
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 0x47c423
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 0x47c3e0
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp + 0x10]
jae 0x47c455
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x490505
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x490506
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x47c430
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x47c460
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.0042a5a0
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 [section..data]
mov esi, eax
add esp, 8
test esi, esi
je 0x47c5e2
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 0x47c4e2
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 0x47c553
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 0x47c510
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp + 0x10]
jae 0x47c585
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x490505
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x490506
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x47c560
push dword [esp + 0x30]
call fcn.0042a5a0
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 0x47c5b0
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 [0x49a004]
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 0x47c6b0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push 0xf0000040
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x47c6d6
mov eax, 0x1b
add esp, 0xc
ret
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x800c
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x47c70e
push eax
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esp + 4], 0
mov eax, 2
add esp, 0xc
ret
push dword [esp + 0x18]
call fcn.0042a5a0
add esp, 4
push 0
push eax
push dword [esp + 0x1c]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [esp], 0x20
jne 0x47c765
push 0
lea eax, [esp + 4]
push eax
push dword [esp + 0x18]
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [esp + 8]
test eax, eax
je 0x47c774
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x47c785
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
add esp, 0xc
ret
Function at 0x47d3c0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x47d40c
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 0x47d3d1
pop ebx
pop edi
pop esi
ret

Function at 0x47e6d1
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x47e710
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47e710
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47e710
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x47e710
cmp dword [ecx + 0x74], 0xe
jbe 0x47e710
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10012779
Capabilities:
Read file on windows

Disassembly:
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x10012798
call fcn.10005d2a
mov dword [eax], 0x16
call fcn.10004d55
jmp 0x10012893
mov eax, dword [edi + 0xc]
test al, 0x83
je 0x10012893
test al, 0x40
jne 0x10012893
test al, 2
je 0x100127ba
or eax, 0x20
mov dword [edi + 0xc], eax
jmp 0x10012893
or eax, 1
mov dword [edi + 0xc], eax
test eax, 0x10c
jne 0x100127d0
push edi
call fcn.1000d6b4
pop ecx
jmp 0x100127d5
mov eax, dword [edi + 8]
mov dword [edi], eax
push dword [edi + 0x18]
push dword [edi + 8]
push edi
call fcn.1000cb79
pop ecx
push eax
call fcn.10013cf7
add esp, 0xc
les ecx, [ecx + ecx*4]
inc edi
add al, 0x85
ror byte [edi], 0x84
mov word [eax], es
add byte [eax], al
cmp eax, 0xffffffff
je 0x10012882
test byte [edi + 0xc], 0x82
jne 0x10012856
push edi
call fcn.1000cb79
pop ecx
cmp eax, 0xffffffff
je 0x10012841
push edi
call fcn.1000cb79
pop ecx
cmp eax, 0xfffffffe
je 0x10012841
push esi
push edi
call fcn.1000cb79
mov esi, eax
push edi
sar esi, 5
call fcn.1000cb79
and eax, 0x1f
pop ecx
shl eax, 6
add eax, dword [esi*4 + 0x10047038]
pop ecx
pop esi
jmp 0x10012846
mov eax, 0x10045d18
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x10012856
or dword [edi + 0xc], 0x2000
cmp dword [edi + 0x18], 0x200
jne 0x10012875
test byte [edi + 0xc], 8
je 0x10012875
test dword [edi + 0xc], 0x400
jne 0x10012875
mov dword [edi + 0x18], 0x1000
mov ecx, dword [edi]
dec dword [edi + 4]
movzx eax, byte [ecx]
inc ecx
mov dword [edi], ecx
jmp 0x10012896
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [edi + 0xc], eax
and dword [edi + 4], 0
or eax, 0xffffffff
pop edi
pop ebp
ret

Function at 0x1001abb3
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x10045068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, ecx
lea edi, [ebp - 0x88]
push 0x20
pop ecx
mov esi, 0x10038238
mov dword [ebp - 0x90], eax
rep movsd dword es:[edi], dword [esi]
mov ebx, edx
xor edx, edx
xor ecx, ecx
movsw word es:[edi], word [esi]
movzx esi, byte [ecx + eax]
inc ecx
mov dword [ebp - 0x8c], esi
cmp ecx, 8
jae 0x1001ac00
movzx esi, byte [ecx + eax]
inc ecx
jmp 0x1001ac02
xor esi, esi
cmp ecx, 8
jae 0x1001ac0e
movzx edi, byte [ecx + eax]
inc ecx
jmp 0x1001ac10
xor edi, edi
mov eax, dword [ebp - 0x8c]
and dword [ebp - 0x8c], 3
shl dword [ebp - 0x8c], 4
shr eax, 2
mov ax, word [ebp + eax*2 - 0x88]
mov word [ebx + edx*2], ax
mov eax, esi
shr eax, 4
and esi, 0xf
or eax, dword [ebp - 0x8c]
shl esi, 2
mov ax, word [ebp + eax*2 - 0x88]
mov word [ebx + edx*2 + 2], ax
mov eax, edi
shr eax, 6
and edi, 0x3f
or esi, eax
mov ax, word [ebp + esi*2 - 0x88]
mov word [ebx + edx*2 + 4], ax
mov ax, word [ebp + edi*2 - 0x88]
mov word [ebx + edx*2 + 6], ax
add edx, 4
mov eax, dword [ebp - 0x90]
cmp ecx, 8
jb 0x1001abe9
mov ecx, dword [ebp - 4]
push 0x3d
pop eax
mov word [ebx + edx*2 - 2], ax
xor ecx, ebp
xor eax, eax
pop edi
mov word [ebx + edx*2], ax
mov al, 1
pop esi
pop ebx
call fcn.1000164d
mov esp, ebp
pop ebp
ret
Function at 0x10028541
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
xor esi, esi
push ebx
call dword [0x1002b0e0]
cmp eax, 0x26
jne 0x10028696
cmp word [ebx], 0x7b
jne 0x10028696
cmp word [ebx + 0x4a], 0x7d
jne 0x10028696
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
add eax, eax
push eax
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.10003a70
mov ax, word [ebx + 0x10]
add esp, 0xc
mov word [esi], ax
mov ax, word [ebx + 0xe]
mov word [esi + 2], ax
mov ax, word [ebx + 0xc]
mov word [esi + 4], ax
mov ax, word [ebx + 0xa]
mov word [esi + 6], ax
mov ax, word [ebx + 8]
mov word [esi + 8], ax
mov ax, word [ebx + 6]
mov word [esi + 0xa], ax
mov ax, word [ebx + 4]
mov word [esi + 0xc], ax
mov ax, word [ebx + 2]
mov word [esi + 0xe], ax
mov ax, word [ebx + 0x1a]
mov word [esi + 0x10], ax
mov ax, word [ebx + 0x18]
mov word [esi + 0x12], ax
mov ax, word [ebx + 0x16]
mov word [esi + 0x14], ax
mov ax, word [ebx + 0x14]
mov word [esi + 0x16], ax
mov ax, word [ebx + 0x24]
mov word [esi + 0x18], ax
mov ax, word [ebx + 0x22]
mov word [esi + 0x1a], ax
mov ax, word [ebx + 0x20]
mov word [esi + 0x1c], ax
mov ax, word [ebx + 0x1e]
mov word [esi + 0x1e], ax
mov ax, word [ebx + 0x2a]
mov word [esi + 0x20], ax
mov ax, word [ebx + 0x28]
mov word [esi + 0x22], ax
mov ax, word [ebx + 0x2e]
mov word [esi + 0x24], ax
mov ax, word [ebx + 0x2c]
mov word [esi + 0x26], ax
mov ax, word [ebx + 0x34]
mov word [esi + 0x28], ax
mov ax, word [ebx + 0x32]
mov word [esi + 0x2a], ax
mov ax, word [ebx + 0x38]
mov word [esi + 0x2c], ax
mov ax, word [ebx + 0x36]
mov word [esi + 0x2e], ax
mov ax, word [ebx + 0x3c]
mov word [esi + 0x30], ax
mov ax, word [ebx + 0x3a]
mov word [esi + 0x32], ax
mov ax, word [ebx + 0x40]
mov word [esi + 0x34], ax
mov ax, word [ebx + 0x3e]
mov word [esi + 0x36], ax
mov ax, word [ebx + 0x44]
mov word [esi + 0x38], ax
mov ax, word [ebx + 0x42]
mov word [esi + 0x3a], ax
mov ax, word [ebx + 0x48]
mov word [esi + 0x3c], ax
mov ax, word [ebx + 0x46]
mov word [esi + 0x3e], ax
xor eax, eax
mov word [esi + 0x40], ax
xor esi, esi
mov dword [edi], 0x20
inc esi
pop edi
jmp 0x1002869b
mov ecx, dword [ebp + 0xc]
mov dword [ecx], esi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8