joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100743f0
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100977b8
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x10074418
call fcn.10074930
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x100744fb
cmp byte [edi], 0
je 0x100744fb
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x1007443d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.10073130
test eax, eax
jne 0x1007445d
push 0x102778a8
lea ecx, [esi + 0x38]
call fcn.1008820a
jmp 0x100744fb
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.10073180
test eax, eax
jne 0x1007448c
mov ecx, esi
call fcn.10073280
push edi
add esi, 0x38
push 0x10277884
push esi
call fcn.10085ed7
add esp, 0xc
jmp 0x100744fb
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.100751b0
test eax, eax
je 0x100744f4
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.100745d0
test eax, eax
jne 0x10074510
push edi
lea eax, [esi + 0x38]
push 0x10277860
push eax
call fcn.10085ed7
add esp, 0xc
mov ecx, esi
call fcn.10074930
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x100745b8
mov ecx, dword [0x10277b18]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.10085ed7
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.10073230
test eax, eax
jne 0x1007457a
push 0x10277844
lea ecx, [esi + 0x38]
call fcn.1008820a
jmp 0x1007458a
push 0xfa
mov ecx, esi
call fcn.100751b0
test eax, eax
jne 0x100745a7
mov ecx, esi
call fcn.10074930
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.100880cd
jmp 0x100744fb
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.100880cd
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x1008a49b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1008a4d3
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.10088528
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.10088500
jmp 0x1008a4df
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x1008bb8c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x1008bbce
call fcn.10091867
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x1008bbce
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x1008bbc5
xor eax, eax
jmp 0x1008bbd6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.1008bbdc
pop edi
pop esi
pop ebx
ret 4

Function at 0x430003
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x625a0432
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x84a7a5f
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x476a90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4f000]
mov dword [edi + 0x5509c], 0xe1215e13
push edi
or ebp, 0xffffffff
jmp 0x476aba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x476ac1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x476ab0
mov eax, 1
add ebx, ebx
jne 0x476ad3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x476ae4
jne 0x476b03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x476b03
dec eax
add ebx, ebx
jne 0x476af0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x476ac8
add ebx, ebx
jne 0x476aff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x476b55
xor ecx, ecx
sub eax, 3
jb 0x476b1b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x476b8a
sar eax, 1
mov ebp, eax
jmp 0x476b26
add ebx, ebx
jne 0x476b26
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x476af4
inc ecx
add ebx, ebx
jne 0x476b34
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x476af4
add ebx, ebx
jne 0x476b41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x476b36
jne 0x476b52
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x476b36
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x476b74
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x476b66
jmp 0x476ab6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x476b74
add edi, ecx
jmp 0x476ab6
pop esi
mov edi, esi
mov ecx, 0x2a5c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x476b92
cmp byte [edi], 0x19
jne 0x476b92
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x476b97
lea edi, [esi + 0x73000]
mov eax, dword [edi]
or eax, eax
je 0x476c06
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7e878]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7e92c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x476bc4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7e930]
or eax, eax
je 0x476c00
mov dword [ebx], eax
add ebx, 4
jmp 0x476be1
call dword [esi + 0x7e940]
mov ebp, dword [esi + 0x7e934]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x476c3a
sub esp, 0xffffff80
jmp fcn.00455d50
Function at 0xa99260
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x559000]
push edi
or ebp, 0xffffffff
jmp 0xa99282
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xa99289
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa99278
mov eax, 1
add ebx, ebx
jne 0xa9929b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xa992ac
jne 0xa992cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa992cb
dec eax
add ebx, ebx
jne 0xa992b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xa99290
add ebx, ebx
jne 0xa992c7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xa9931d
xor ecx, ecx
sub eax, 3
jb 0xa992e3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xa99352
sar eax, 1
mov ebp, eax
jmp 0xa992ee
add ebx, ebx
jne 0xa992ee
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa992bc
inc ecx
add ebx, ebx
jne 0xa992fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa992bc
add ebx, ebx
jne 0xa99309
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xa992fe
jne 0xa9931a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xa992fe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xa9933c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xa9932e
jmp 0xa9927e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xa9933c
add edi, ecx
jmp 0xa9927e
pop esi
mov edi, esi
mov ecx, 0x1302a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xa9935a
cmp byte [edi], 0x3c
jne 0xa9935a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xa9935f
lea edi, [esi + 0x696000]
mov eax, dword [edi]
or eax, eax
je 0xa993d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x69ad1c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x69ae5c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xa9938c
mov ecx, edi
jns 0xa993bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x69ae60]
or eax, eax
je 0xa993d1
mov dword [ebx], eax
add ebx, 4
jmp 0xa993a9
call dword [esi + 0x69ae70]
mov ebp, dword [esi + 0x69ae64]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xa9940b
sub esp, 0xffffff80
jmp 0x638890
Function at 0x40e7b4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4102f8
call fcn.0040ea78
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40e814
cmp eax, 0xffffffff
je 0x40e814
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40e80d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40e80d
cmp edx, 0x10000000
jae 0x40e80d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x40e80a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40e880
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40e8be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x40e8b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40e8c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x40e8a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40e990
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x40e9c1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40e9c1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x40e9c1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x416000
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x40
lea eax, [esp + 0x44]
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
push 0
push eax
push 0x40
push ecx
push esi
call ebx
test eax, eax
je 0x416175
cmp dword [esp + 0x54], 0x40
jne 0x416175
cmp word [esp + 0x10], 0x5a4d
jne 0x416175
mov edx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push edx
push esi
call ebp
cmp eax, 0xffffffff
je 0x416175
lea eax, [esp + 0x54]
push 0
push eax
push 0xf8
push 0x41c960
push esi
call ebx
test eax, eax
je 0x416175
cmp dword [esp + 0x54], 0xf8
jne 0x416175
cmp dword [0x41c960], 0x4550
jne 0x416175
mov eax, dword [0x41c976]
test ah, 0x20
jne 0x416175
mov edx, dword [0x41ca80]
xor eax, eax
mov ax, word [0x41c966]
add eax, edx
lea eax, [eax + eax*4]
shl eax, 3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x41ca58], eax
je 0x416175
push 1
push 0
push 0
push esi
call ebp
mov dword [0x41ca6c], eax
xor eax, eax
mov ax, word [0x41c966]
mov edx, dword [0x41ca58]
lea ecx, [esp + 0x54]
push 0
lea edi, [eax + eax*4]
push ecx
shl edi, 3
push edi
push edx
push esi
call ebx
test eax, eax
je 0x416175
cmp dword [esp + 0x54], edi
jne 0x416175
push 1
push 0
push 0
push esi
call ebp
mov ecx, dword [0x41ca80]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov eax, dword [0x41c9b4]
cmp edx, eax
ja 0x416175
mov edi, dword [0x41ca58]
mov ecx, dword [0x41c988]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
add eax, edx
cmp ecx, eax
jae 0x416175
xor eax, eax
push 2
mov ax, word [0x41c966]
push 0
push 0
push esi
lea ecx, [eax + eax*4]
mov ebx, dword [edi + ecx*8 - 0x18]
lea edi, [edi + ecx*8]
call ebp
mov edx, dword [edi - 0x14]
add edx, ebx
cmp eax, edx
jne 0x416175
cmp dword [edi - 0x20], ebx
ja 0x416175
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x418769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41c190
cmp edx, dword [eax]
je 0x41878b
add eax, 8
inc ecx
cmp eax, 0x41c220
jl 0x41877c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41c190]
jne 0x4188b9
mov eax, dword [0x41cbb0]
cmp eax, 1
je 0x418893
test eax, eax
jne 0x4187bc
cmp dword [0x41c0e4], 1
je 0x418893
cmp edx, 0xfc
je 0x4188b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4187f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00419670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00419490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x418836
lea eax, [ebp - 0x1a4]
push eax
call fcn.00419490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41b45c
push edi
call fcn.00419f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00419670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00419680
lea eax, [ebp - 0xa0]
push 0x41b43c
push eax
call fcn.00419680
push dword [esi + 0x41c194]
lea eax, [ebp - 0xa0]
push eax
call fcn.00419680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00419e75
add esp, 0x2c
pop edi
jmp 0x4188b9
lea eax, [ebp + 8]
lea esi, [esi + 0x41c194]
push 0
push eax
push dword [esi]
call fcn.00419490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x430230
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x81af90]
xor edx, edx
cmp eax, edx
jne 0x430256
xor eax, eax
mov byte [eax + 0x81ae90], al
inc eax
cmp eax, 0x100
jl 0x43023e
mov dword [0x81af90], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x81ae90
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4302e7
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 0x4302ba
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 0x430288
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4302f0
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 0x430343
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 0x43032a
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
Function at 0x4346e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x78]
push ebx
push esi
cmp eax, 1
push edi
mov dword [esp + 0x14], ecx
jl 0x434901
cmp eax, 8
jg 0x434901
cmp dword [esp + 0x8c], 2
jl 0x434901
mov eax, dword [esp + 0x7c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
sub ecx, esi
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x7c], ecx
test ecx, ecx
mov dword [esp + 0x70], ebx
jle 0x434901
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x434901
mov eax, dword [esp + 0x80]
test eax, eax
je 0x434767
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
xor edx, edx
push ebp
test ebx, ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], edx
jle 0x4348ea
mov ebp, dword [0x4bb54c]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x434799
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x4348d1
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x4347b9
mov ecx, 0x32
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push edx
lea edx, [esp + 0x34]
push eax
push edx
call dword [0x4bb538]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x4347f8
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [0x4bb540]
lea ecx, [esp + 0x28]
push ecx
call dword [0x4bb57c]
test eax, eax
jne 0x4348b8
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov eax, edi
mov ecx, esi
mov dword [esp + 0x44], edx
neg eax
neg ecx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call ebp
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x94]
sub ecx, edi
sub eax, esi
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x9c]
push eax
call fcn.00433cf0
cmp eax, 1
jne 0x4348e2
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.004345a0
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x4347ad
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x4348ea
jmp 0x434784
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.004338f0
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x68
ret 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x68
ret 0x1c
Function at 0x437380
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x437518
cmp ebp, ebx
jle 0x437518
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x4373de
dec eax
or eax, 0xfffffff8
inc eax
je 0x4373e5
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x4373f4
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x4373fb
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.004aaa85
add esp, 4
cmp eax, ebx
je 0x43741c
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.004aaa85
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x43750e
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x4374f5
mov al, byte [edx]
cmp al, 0xc0
jbe 0x4374e1
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x4374d6
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x4374e4
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x4374e4
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x437480
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x437471
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret