joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e8d0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x46a36c]
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 0x44e950
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042a470
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.00418a90
push esi
call dword [0x46a004]
add esp, 0x20
lea eax, [ebx + 0x4d]
jmp 0x44eab0
push 0
push 0x80
push 3
push 0
push 1
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x44e9aa
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042a470
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.00418a90
push 0
mov esi, 0x4d
call dword [0x46a004]
add esp, 0x20
jmp 0x44eaa1
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x44e9ea
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042a470
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.00418a90
add esp, 0x1c
mov esi, 0x4d
jmp 0x44ea8d
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x44ea18
jg 0x44e9fe
cmp edi, 0x100000
jbe 0x44ea18
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebp
call fcn.00418a90
add esp, 0xc
mov esi, 0x4d
jmp 0x44ea8d
lea eax, [edi + 1]
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x44ea30
lea esi, [eax + 0x1b]
jmp 0x44ea8d
test edi, edi
je 0x44ea74
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 0x44eacd
mov eax, dword [esp + 0x10]
test eax, eax
je 0x44eac9
add esi, eax
cmp esi, edi
jb 0x44ea40
push ebp
push dword [esp + 0x18]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.0044e6d0
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x46a004]
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.00457aa1
add esp, 0x120
ret
mov edi, esi
jmp 0x44ea74
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042a470
push eax
push dword [esp + 0x24]
push str.schannel:_failed_to_read_from_CA_file__s:__s
push ebp
call fcn.00418a90
add esp, 0x1c
mov esi, 0x4d
jmp 0x44ea8d
Function at 0x454d00
Capabilities:
Check http status code

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x18]
push 0x11
push str.WWW_Authenticate:
push esi
call fcn.0041c6b0
add esp, 0xc
test eax, eax
je 0x454d2e
mov ebp, dword [edi + 0xe0]
cmp ebp, 0x191
je 0x454d50
push 0x13
push str.Proxy_authenticate:
push esi
call fcn.0041c6b0
add esp, 0xc
test eax, eax
je 0x454d96
mov ebp, dword [edi + 0xe0]
cmp ebp, 0x197
jne 0x454d96
push esi
call fcn.00422010
mov esi, eax
add esp, 4
test esi, esi
jne 0x454d67
pop edi
lea eax, [esi + 0x1b]
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x197
push esi
sete al
movzx eax, al
push eax
push edi
call fcn.00423b80
push esi
mov edi, eax
call dword [0x46a004]
add esp, 0x10
test edi, edi
je 0x454f36
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push 0xf
push str.Content_Length:
push esi
call fcn.0041c6b0
add esp, 0xc
test eax, eax
je 0x454df2
mov ecx, dword [edi + 0xe0]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x454dd1
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response
push edi
call fcn.00418b60
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x1c]
add eax, 0x208
push eax
push 0xa
lea eax, [esi + 0xf]
push 0
push eax
call fcn.0042aea0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push 5
push str.close
push 0xb
push str.Connection:
push esi
call fcn.00421f60
add esp, 0x14
test al, al
jne 0x454f2b
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.0041c6b0
add esp, 0xc
test eax, eax
je 0x454e91
mov ecx, dword [edi + 0xe0]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x454e4c
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
push edi
call fcn.00418b60
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push 7
push str.chunked
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.00421f60
add esp, 0x14
test al, al
je 0x454f36
push str.CONNECT_responded_chunked
push edi
call fcn.00418b60
mov eax, dword [esp + 0x24]
push edi
mov byte [eax + 0x214], 1
call fcn.00449f00
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push 5
push str.close
push 0x11
push str.Proxy_Connection:
push esi
call fcn.00421f60
add esp, 0x14
test al, al
jne 0x454f2b
push 7
push str.HTTP_1.
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x454f36
mov al, byte [esi + 7]
cmp al, 0x30
je 0x454ecc
cmp al, 0x31
jne 0x454f36
cmp byte [esi + 8], 0x20
jne 0x454f36
mov cl, byte [esi + 9]
mov al, cl
sub al, 0x30
cmp al, 9
ja 0x454f36
mov dl, byte [esi + 0xa]
mov al, dl
sub al, 0x30
cmp al, 9
ja 0x454f36
mov dh, byte [esi + 0xb]
mov al, dh
sub al, 0x30
cmp al, 9
ja 0x454f36
mov al, byte [esi + 0xc]
cmp al, 0x30
jl 0x454efe
cmp al, 0x39
jle 0x454f36
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, dl
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, dh
lea eax, [eax + ecx*2]
add eax, 0xffffeb30
mov dword [edi + 0xe0], eax
mov dword [edi + 0xd74], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x1c]
mov byte [eax + 0x215], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x456630
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 0x45665b
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 0x4566aa
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 0x4566b2
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 0x456723
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 0x4566e0
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp + 0x10]
jae 0x456755
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x466241
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x466242
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x456730
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x456760
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.0041a5f0
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 0x4568e2
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 0x4567e2
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 0x456853
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 0x456810
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp + 0x10]
jae 0x456885
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x466241
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x466242
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x456860
push dword [esp + 0x30]
call fcn.0041a5f0
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 0x4568b0
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 [0x46a004]
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 0x457680
Capabilities:
Encode data using xor

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

Function at 0x4586c3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x458702
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x458702
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x458702
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x458702
cmp dword [ecx + 0x74], 0xe
jbe 0x458702
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x405f9a
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x41e710
call fcn.00406c1c
mov edi, 0x94
mov eax, edi
call fcn.00405120
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [0x41c26c]
mov ecx, dword [esi + 0x10]
mov dword [0x427954], ecx
mov eax, dword [esi + 4]
mov dword [0x427960], eax
mov edx, dword [esi + 8]
mov dword [0x427964], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x427958], esi
cmp ecx, 2
je 0x405ffa
or esi, 0x8000
mov dword [0x427958], esi
shl eax, 8
add eax, edx
mov dword [0x42795c], eax
xor esi, esi
push esi
mov edi, dword [0x41c1e4]
call edi
cmp word [eax], 0x5a4d
jne 0x406035
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406035
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40604d
cmp eax, 0x20b
je 0x40603a
mov dword [ebp - 0x1c], esi
jmp 0x406061
cmp dword [ecx + 0x84], 0xe
jbe 0x406035
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40605b
cmp dword [ecx + 0x74], 0xe
jbe 0x406035
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004077b6
pop ecx
test eax, eax
jne 0x406075
push 0x1c
call fcn.00405f76
pop ecx
call fcn.00409470
test eax, eax
jne 0x406086
push 0x10
call fcn.00405f76
pop ecx
call fcn.0040b8f0
mov dword [ebp - 4], esi
call fcn.0040af22
test eax, eax
jge 0x40609f
push 0x1b
call fcn.00405f51
pop ecx
call dword [0x41c0b8]
mov dword [0x429210], eax
call fcn.0040b7ce
mov dword [0x427944], eax
call fcn.0040b72c
test eax, eax
jge 0x4060c5
push 8
call fcn.00405f51
pop ecx
call fcn.0040b4f9
test eax, eax
jge 0x4060d6
push 9
call fcn.00405f51
pop ecx
push 1
call fcn.004066f5
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4060ec
push eax
call fcn.00405f51
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [0x41c0b4]
call fcn.0040b49c
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40610d
movzx eax, word [ebp - 0x40]
jmp 0x406110
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00410dd7
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40612e
push edi
call fcn.00406822
call fcn.00406844
jmp 0x406160
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00406c57
ret
Function at 0x408345
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x408373
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40837a
cmp ebx, dword [eax + 4]
jae 0x40837a
xor eax, eax
jmp 0x40856a
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40838b
xor eax, eax
inc eax
jmp 0x408569
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4083a1
cmp ecx, edx
jae 0x4084e6
cmp dword [eax + 4], 0
je 0x4083aa
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x408392
cmp dword [ebp + 8], 0
je 0x4083cc
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4084e6
cmp eax, esi
jae 0x4084e6
mov eax, dword [0x427af8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4083f1
cmp dword [esi*4 + 0x427b00], edi
je 0x4084ea
inc esi
cmp esi, eax
jl 0x4083df
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x41c0a0]
test eax, eax
je 0x408566
cmp dword [ebp - 8], 0x1000000
jne 0x408566
test byte [ebp - 0xc], 0xcc
je 0x40846f
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x408566
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x408566
cmp word [eax + 0x18], 0x10b
jne 0x408566
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x408566
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40846f
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40846f
test byte [ecx + 0x27], 0x80
jne 0x4084e6
push 1
push 0x427b40
call dword [0x41c280]
test eax, eax
jne 0x408383
mov ecx, dword [0x427af8]
test ecx, ecx
mov edx, ecx
jle 0x4084a3
lea eax, [ecx*4 + 0x427afc]
cmp dword [eax], edi
je 0x4084a3
dec edx
sub eax, 4
test edx, edx
jg 0x408497
test edx, edx
jne 0x4084d4
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4084b0
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4084c8
lea eax, [edx*4 + 0x427b00]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4084b6
cmp ecx, 0x10
jge 0x4084d4
inc ecx
mov dword [0x427af8], ecx
push 0
push 0x427b40
call dword [0x41c280]
jmp 0x408383
xor eax, eax
jmp 0x408569
test esi, esi
jle 0x408383
mov ebx, dword [0x41c280]
push 1
push 0x427b40
call ebx
test eax, eax
jne 0x408383
cmp dword [esi*4 + 0x427b00], edi
je 0x408540
mov eax, dword [0x427af8]
lea esi, [eax - 1]
test esi, esi
jl 0x40852e
cmp dword [esi*4 + 0x427b00], edi
je 0x40852a
dec esi
jns 0x40851e
test esi, esi
jge 0x40853e
cmp eax, 0x10
jge 0x408539
inc eax
mov dword [0x427af8], eax
lea esi, [eax - 1]
jmp 0x408540
je 0x408558
xor ecx, ecx
test esi, esi
jl 0x408558
lea eax, [ecx*4 + 0x427b00]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x408546
push 0
push 0x427b40
call ebx
jmp 0x408383
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40210d
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004022bd
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x40220b
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x4021ae
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x4021f1
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x4021c5
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x4021e0
test al, 0x40
je 0x4021d7
mov ecx, dword [edi + 0x20]
jmp 0x4021de
test al, 0x80
je 0x4021f1
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x4021f1
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x40217d
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x4d7a10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
dec eax
dec cx
add byte [ecx + 0x66], bl
dec ecx
add byte [eax - 0x6f6f6f70], dl
nop
nop
nop
push 0xffffffffffffffff
push 0x5d78c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov eax, dword [0xc7bf40]
push ebx
push esi
lea ecx, [esp + 0x30]
mov dword [esp + 8], 0xb71448
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call fcn.004cc4a0
mov dword [esp + 8], 0xb71b24
mov ebx, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x4c], 0
mov eax, dword [ebx]
push eax
push ecx
lea ecx, [esp + 0x10]
call fcn.004cd0f0
test eax, eax
jne 0x4d7a89
xor esi, esi
jmp 0x4d7ad1
mov esi, dword [esp + 0x60]
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x60]
push esi
push 0
push edx
call edi
push esi
push 0
mov eax, dword [esp + 0x20]
push eax
call edi
push esi
push 0
mov ecx, dword [esp + 0x24]
push ecx
call edi
cmp dword [esp + 0x44], 0x3c
jne 0x4d7ac4
mov edx, dword [esp + 0x3c]
push esi
add edx, 0x1c
push 1
push edx
call edi
push ebx
lea ecx, [esp + 0x10]
call fcn.004ccfd0
mov esi, eax
pop edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x4c], 3
mov dword [esp + 0x30], 0xb6fc08
call fcn.004cc6a0
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 2
call 0x60af40
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 1
call 0x60af40
lea ecx, [esp + 0xc]
mov dword [esp + 0x4c], 0xffffffff
call 0x60af40
mov ecx, dword [esp + 0x44]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret 0x10

Function at 0x5123f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xc8d9d8]
xor edx, edx
cmp eax, edx
jne 0x512416
xor eax, eax
mov byte [eax + 0xc8d8d8], al
inc eax
cmp eax, 0x100
jl 0x5123fe
mov dword [0xc8d9d8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xc8d8d8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x5124a7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x51247a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x512448
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x512520
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x512573
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x51255a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret