joyce8/EMBER2024-capa huggingface dataset:
Function at 0xeae9ee
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax + 0xc], reloc.kernel32.dll_WriteFile
jmp 0xeaea11
lea esp, [esp + 4]
mov dword [eax + 8], 0x67452301
jmp 0xeae9d8
mov dword [eax + 0x14], reloc.kernel32.dll_WriteFile
ret
mov dword [eax + 0x10], reloc.kernel32.dll_WriteFile
jmp 0xeae9fb

Function at 0x110fa5f
Capabilities:
Parse pe header

Disassembly:
push eax
jmp 0x110802d
call fcn.01108032
jmp 0x110f9b0
movzx ebx, word [eax + 0x3c]
jmp 0x110fa32
mov byte [esp + 2], cl
lea esp, [esp + 1]
mov dword [esp + 4], esi
call 0x110f948
pop eax
xor ax, ax
cmp word [eax], 0x5a4d
jmp 0x110f9f3
and al, 4
pushfd
lea esp, [esp + 3]
push ebx
jmp 0x110f95e
je 0x110e763
sub eax, 0x10000
jmp 0x110f9b4
add ebx, eax
cmp word [ebx], 0x4550
push eax
inc ebp
je 0x1107f93
jne 0x110f9f9
push edx
rcl byte [esi + 0x31], 0xc0
and ch, ah
jge 0x110fa37
je 0x110f9d3
insb byte es:[edi], dx
fimul word [esi - 0x24]
mov ebx, 0xe34cf156
jae 0x110fa6d
in eax, 0x12
cmpsb byte [esi], byte es:[edi]
rcl dword [eax - 0x2d]
dec edx
in eax, 0xe9
invalid
invalid
dec byte [0x22ac38a2]
inc ebp
mov ah, 0
mov ecx, 0x10bb4829
add byte [edx + 0x299a6f08], bl
invalid
Function at 0x40ab80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x446c50
push 0xa
push 0x40ac14
mov eax, dword [0x446c40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40aba4
call fcn.004151cc
push ebx
mov eax, dword [0x446c40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40abbb
call fcn.004151cc
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40abcd
call fcn.004151cc
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x446c54], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x446c58], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x446c5c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x446c60], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x446c64], ecx
add edx, dword [eax + 0x14]
mov dword [0x446c68], edx
pop esi
pop ebx
ret

Function at 0x40e270
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40e319
test eax, edx
je 0x40e31c
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40e299
push edx
mov edx, eax
mov eax, esp
call fcn.00406d34
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40e2af
push eax
lea eax, [esp + 8]
call fcn.00406d34
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40e2be
movzx eax, word [eax]
sub eax, ecx
jmp 0x40e2e5
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40e2ff
add ecx, 4
js 0x40e2d6
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40e2fc
push eax
mov eax, ecx
mov edx, 2
call fcn.004062a8
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40e2e3
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40e2e5
xor eax, eax
ret
test eax, eax
je 0x40e32c
test edx, edx
jne 0x40e280
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40f398
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406bbc
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40f3b1
test al, 0x10
jne 0x40f3b5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4127a8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4127e1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406c6c
jmp 0x4127ea
mov eax, ebx
mov edx, esi
call fcn.00406b30
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4127f4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x412816
movzx eax, word [esp]
jmp 0x412818
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x412fa8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4130cd
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00412db8
mov esi, eax
mov eax, dword [0x443ddc]
cmp byte [eax], 0
je 0x413075
mov eax, dword [0x443c78]
call fcn.00404888
call fcn.004042e8
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x412f80]
call fcn.00408194
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4130e8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4130b1
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x443c48]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x446c40]
call fcn.00408258
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4130d4
lea eax, [ebp - 4]
mov edx, dword [0x412f80]
call fcn.004081a0
ret

Function at 0x415074
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004065b8
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x41501e
mov eax, edi
add eax, eax
call fcn.004041a0
mov esi, eax
jmp 0x415020
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x415059
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x415043
mov eax, esp
cmp esi, eax
je 0x415066
mov eax, esi
call fcn.004041bc
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x4150a0
cmp bl, 0
je 0x41509c
cmp bl, 0x41
jl 0x415097
cmp bl, 0x5a
jg 0x415097
or bl, 0x20
xor al, bl
inc esi
jmp 0x41507b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x414fe0
Function at 0x10493058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x104931a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1049307e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1049306a
add dl, dl
jne 0x10493089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104930dc
xor eax, eax
add dl, dl
jne 0x10493096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1049317d
add dl, dl
jne 0x104930a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104930b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104930bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104930c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x104930d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10493075
mov eax, 1
add dl, dl
jne 0x104930ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104930f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104930e1
sub eax, ebx
mov ebx, 1
jne 0x10493128
mov ecx, 1
add dl, dl
jne 0x1049310e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10493119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10493105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10493075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1049313f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1049314a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10493136
cmp eax, 0x7d00
jae 0x1049316d
cmp eax, 0x500
jb 0x10493168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10493075
cmp eax, 0x7f
ja 0x10493170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10493075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1049319e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10493075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x403203
pop dword [ebp - 8]
mov eax, 0x403203
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xf868aabe
sub dword [ebp - 0x18], 0xaa166573
mov dword [ebp - 0x14], 0xeba3eb7f
add dword [ebp - 0x14], 0x468f60c6
mov dword [ebp - 0x10], 0x25edfc24
sub dword [ebp - 0x10], 0xd9a1b7f6
mov dword [ebp - 0xc], 0x71fd5c43
sub dword [ebp - 0xc], 0x71fd5c43
lea eax, [ebp - 0x18]
push eax
mov eax, 0xde9f67e8
add eax, 0x21a118a4
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x11b22710
add dword [ebp - 0x18], 0x62c04246
mov dword [ebp - 0x14], 0xb5168add
add dword [ebp - 0x14], 0x8c55d698
mov dword [ebp - 0x10], 0xcaf429f1
add dword [ebp - 0x10], 0x987b427b
mov dword [ebp - 0xc], 0xfb2dcca7
sub dword [ebp - 0xc], 0xfb2dcca7
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x35e35
push 0
call eax
mov ecx, 0x452d
xor ebx, ebx
add ebx, eax
mov edi, 0xcbcb86
add edi, 0xff75447a
add edi, dword [ebp - 8]
mov edx, 0xb9208935
sub edx, 0x2b9f2fbe
sub dword [ebp - 4], 0x343a326b
mov esi, dword [edi]
sub dword [ebp - 4], 0x2df41498
add esi, edx
xor dword [ebp - 4], 0xb51176b4
mov dword [ebx], esi
add ebx, 0x8d270bc1
sub ebx, 0x8d270bbd
add edi, 0x33f02cb8
add edi, 0xcc0fd34c
loop 0x403317
add eax, 0x7d6cee03
add eax, 0x82941984
xor ebx, ebx
add ebx, eax
add eax, 0x859f763b
add eax, 0x7a6089ca
mov ecx, 0x399dd20f
sub ecx, 0x395dd20f
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x41aa10
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x9b5cd8]
xor edx, edx
cmp eax, edx
jne 0x41aa36
xor eax, eax
mov byte [eax + 0x9b5bd8], al
inc eax
cmp eax, 0x100
jl 0x41aa1e
mov dword [0x9b5cd8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x9b5bd8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41aac7
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 0x41aa9a
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 0x41aa68
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41ab40
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 0x41ab93
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 0x41ab7a
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 0x41ee30
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 0x41f051
cmp eax, 8
jg 0x41f051
cmp dword [esp + 0x8c], 2
jl 0x41f051
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 0x41f051
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x41f051
mov eax, dword [esp + 0x80]
test eax, eax
je 0x41eeb7
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 0x41f03a
mov ebp, dword [0x47e450]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x41eee9
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x41f021
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x41ef09
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 [0x47e438]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x41ef48
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [0x47e440]
lea ecx, [esp + 0x28]
push ecx
call dword [0x47e484]
test eax, eax
jne 0x41f008
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.0041e440
cmp eax, 1
jne 0x41f032
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.0041ecf0
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x41eefd
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x41f03a
jmp 0x41eed4
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.0041e040
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 0x4218f0
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 0x421a88
cmp ebp, ebx
jle 0x421a88
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 0x42194e
dec eax
or eax, 0xfffffff8
inc eax
je 0x421955
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x421964
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x42196b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.0046ed27
add esp, 4
cmp eax, ebx
je 0x42198c
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.0046ed27
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 0x421a7e
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 0x421a65
mov al, byte [edx]
cmp al, 0xc0
jbe 0x421a51
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x421a46
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 0x421a54
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x421a54
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x4219f0
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 0x4219e1
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
Function at 0x429530
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x47bcd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x6c]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x74]
push edi
push eax
mov eax, dword [esp + 0x74]
push ecx
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.0042a0b0
lea edx, [esp + 0x18]
push eax
push edx
call dword [0x47e40c]
mov eax, dword [esp + 0x18]
xor edi, edi
xor ecx, ecx
cmp eax, edi
setl cl
dec ecx
xor edx, edx
and ecx, eax
mov eax, dword [esp + 0x1c]
cmp eax, edi
mov dword [esp + 0x18], ecx
setl dl
dec edx
and edx, eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], edx
call dword [0x47e484]
test eax, eax
je 0x4295d9
mov eax, dword [esp + 0x6c]
push ebx
mov ebx, eax
xor ecx, ecx
xor edx, edx
xor esi, esi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.004291c0
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call dword [0x47e450]
push edi
lea ecx, [esp + 0x4c]
call fcn.00475985
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], edi
call fcn.0043eec0
mov edx, dword [esp + 0x5c]
add esp, 0xc
lea ecx, [esp + 0x18]
push 2
push ecx
push edx
call dword [0x47e06c]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [0x47e4ac]
lea edx, [esp + 0x38]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [0x47e440]
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, esi
mov dword [esp + 0x64], 0xffffffff
mov dword [edx], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x48]
call fcn.004759f7
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14