joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003482e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3138
call fcn.10036150
push edi
cmp dword [ebp + 8], 0
jne 0x10034849
xor eax, eax
jmp 0x10034a30
mov dword [ebp - 0x311c], 0
mov al, byte [0x1004deb0]
mov byte [ebp - 0x100], al
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0xff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea ecx, [ebp - 0x3118]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x311c]
push edx
lea eax, [ebp - 0x3118]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x3128], eax
lea ecx, [ebp - 0x3010]
push ecx
mov edx, dword [ebp - 0x3128]
push edx
mov eax, dword [ebp - 0x311c]
push eax
lea ecx, [ebp - 0x3118]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
lea edx, [ebp - 0x3128]
push edx
lea eax, [ebp - 0x3120]
push eax
push str.VarFileInfoTranslation
lea ecx, [ebp - 0x3010]
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10034951
mov edx, dword [ebp - 0x3120]
mov eax, dword [edx]
shr eax, 0x10
and eax, 0xffff
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x3120]
xor edx, edx
mov dx, word [ecx]
push edx
push str.StringFileInfo_04x_04xProductVersion
lea eax, [ebp - 0x900]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x3128]
push ecx
lea edx, [ebp - 0x3014]
push edx
lea eax, [ebp - 0x900]
push eax
lea ecx, [ebp - 0x3010]
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10034951
mov edx, dword [ebp - 0x3014]
push edx
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [0x1004ae74]
mov dword [ebp - 0x3124], ecx
mov byte [ebp - 0x312c], 0x2e
push 0x2c
lea edx, [ebp - 0x100]
push edx
call fcn.10037180
add esp, 8
test eax, eax
je 0x10034980
mov byte [ebp - 0x312c], 0x2c
cmp dword [ebp - 0x3124], 3
jg 0x10034a1a
cmp dword [ebp - 0x3124], 0
jl 0x10034a1a
lea eax, [ebp - 0x100]
mov dword [ebp - 0x3134], eax
mov dword [ebp - 0x3138], 0
jmp 0x100349c1
mov ecx, dword [ebp - 0x3138]
add ecx, 1
mov dword [ebp - 0x3138], ecx
mov edx, dword [ebp - 0x3138]
cmp edx, dword [ebp - 0x3124]
jge 0x10034a08
movsx eax, byte [ebp - 0x312c]
push eax
mov ecx, dword [ebp - 0x3134]
push ecx
call fcn.10037180
add esp, 8
mov dword [ebp - 0x3130], eax
cmp dword [ebp - 0x3130], 0
jne 0x100349f7
jmp 0x10034a08
mov edx, dword [ebp - 0x3130]
add edx, 1
mov dword [ebp - 0x3134], edx
jmp 0x100349b2
cmp dword [ebp - 0x3130], 0
je 0x10034a1a
mov eax, dword [ebp - 0x3130]
mov byte [eax], 0
lea ecx, [ebp - 0x100]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10037128
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10037148
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1003ace1
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x1003716b
test byte [esp + 8], 2
je 0x1003716b
call fcn.1003ad54
mov dword [eax], 0xd
call fcn.1003ad5d
mov dword [eax], 5
jmp 0x10037144
xor eax, eax
ret

Function at 0x1003b9d2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x1003b9f6
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.1003b708
xor esp, ebx
invalid

Function at 0x1003baed
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sahf
sub eax, 0x119f45c6
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
invalid
invalid

Function at 0x1003bafb
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
xor eax, 0x41a645c6
call fcn.1003b718
push eax
push esi
push dword [ebp + 8]
call fcn.1003b6cd
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.1003b718
push eax
push esi
push dword [ebp + 8]
call fcn.1003b6cd
add esp, 0x30
mov dword [ebp - 0xb8], eax
invalid
invalid
Function at 0x1003d0aa
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 1
pop eax
test eax, eax
je 0x1003d7ae
lea eax, [ebp - 0x230]
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x6fc], 0
inc dword [eax]
jne 0x1003d283
and byte [ebp - 0x77c], 0
and byte [ebp - 0x77b], 0
invalid
invalid
xchg al, bh
Function at 0x1005f71
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
rol esi, cl
inc ebp
stc
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.01005bf0
push eax
push esi
push dword [ebp + 8]
call fcn.01005ba5
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.01005bf0
push eax
push esi
push dword [ebp + 8]
call fcn.01005ba5
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
invalid
pop ebp

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..reloc
mov ebx, 0x40de38
nop
nop
mov ecx, 0x43591d94
nop
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x77e745f0
nop
nop
nop
nop
test eax, eax
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x405eba
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x405ede
xor eax, eax
test eax, eax
je 0x405ef0
cmp byte [ebp + eax - 0x121], 0x5c
je 0x405ef0
xor ecx, ecx
jmp 0x405ef3
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409010]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x405f97
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422acc], 0
push esi
jne 0x405fce
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405fa8
mov dword [ecx*4 + 0x422ac8], eax
inc ecx
cmp ecx, 0x100
jl 0x405fa3
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405fff
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422ac8]
xor eax, esi
inc ecx
dec edx
jne 0x405fe1
pop edi
not eax
pop esi
ret 0xc

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x4e462ad1
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x432060
nop
nop
nop
nop
mov eax, section..tls
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4320d2
nop
nop
nop
mov ebx, 0x42f314
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x44055170
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0xbbf540
Capabilities:
Encode data using xor

Disassembly:
cmp eax, edx
je 0xbbf4bc
fst dword [esp + eax*4]
fldln2
inc ebx
inc esp
sub byte [esi + 0x52], al
lea ecx, [eax + edx*4]
xor eax, dword [eax + edx*8]
xchg byte [edi], ch
pop es
invalid
jmp 0xbbf4fe
popfd
mov edi, gs
adc byte [edi], ah
pop edx
mov ecx, 0x27e7cf00
pop eax
invalid
test dword [eax - 0x4e], ecx
lcall 0xca9, 0xbe0f6871
push 0xca9be0f
mov bh, 5
jae 0xbbf4f9
jne 0xbbf524
pushal
cmp byte [ebx + 0x33], al
jge 0xbbf4d2
xor eax, 0xd83294a9
ja 0xbbf49b
mov dl, 0xa7
xchg byte [ecx - 0x2f], dl
cmp al, 0x59
pop ds
lodsd eax, dword [esi]
cwde
ret 0xe6bb
daa
lea ecx, [ebx - 0x16]
imul esp, dword [eax + 0x55], 0x5e0c0c15
dec edi
wait
stosb byte es:[edi], al
mov dword [0xfb368e93], eax
add ecx, esp
enter 0x5051, 0x52
xchg ebp, eax
fadd dword [esi - 0x2ab7fea4]
xchg byte [ecx + eax + 0x48], bl
aad 0x88
out dx, eax
loope 0xbbf580
add bh, byte [eax + 0x31372b03]
rcr byte [0x607da5e0], 1
aaa
xor eax, edx
sbb eax, 0x607da5e0
cwde
push ecx
push ecx
pop ss
aaa
cmp al, 0xc0
wait
or al, 0x8b
push ebx
inc eax
push edx
push ds
lcall 0xc597, 0x69d779c
pop es
sub edx, dword [0x75d6e7f]
js 0xbbf54d
pop ss
iretd
sbb dword [edi], ebp
and dl, byte [eax + 0x60]
mov dl, 0x52
dec esi
fmul dword [edi]
mov esi, 0x5854310c
neg dword [edx]
inc esp
mov dh, 0xb8
insb byte es:[edi], dx
mov bh, ah
inc ecx
xchg dword cs:[edi + 0x6b], ebp
cmpsd dword [esi], dword es:[edi]
sub dword [edx - 0x54], eax
mov edx, 0xd80b8603
or dword [ecx + 0x296607a], edi
cmp byte [edi], cl
scasd eax, dword es:[edi]
std
test dword [esi - 0xae21212], eax
std
test al, 0x59
sub edx, eax
dec eax
adc bl, 0x6b
mov es, word [bx + di - 0x7f]
cld
sub byte [ebx], 0xcb
out dx, al
xchg ebx, eax
xchg ebp, eax
push es
sub byte [ebp + 0x24], 0xdd
jl 0xbbf5d7
fsub qword [eax + 0x40]
pop eax
iretd
sbb eax, 0x4c20865
sbb al, 0xb0
loope 0xbbf637
and byte [eax - 0x3b], 0xb
jmp 0xbbf615
arpl word [ebp + 0x1d], ax
je 0xbbf64f
jmp 0xbbf658
mov edx, edi
nop
daa
pushal
jb 0xbbf69c
mov eax, dword [0x71c2d056]
xor eax, dword [ecx + ecx]
jnp 0xbbf610
jne 0xbbf65a
dec edx
xor dh, al
push ebp
and eax, 0x65595748
not dword [edx + 0x639e6cf5]
sahf
arpl word [ecx + 0x255c2c00], bx
or dword [edi], 0x6ed58f4
cdq
add byte [esp + ebx*2], ch
and eax, 0x58f40f81
in eax, dx
push es
inc ebx
lahf
lea ecx, [edi + eax*2]
inc eax
pop ecx
jmp esi
xor eax, 0x381654f4
retf 0x82f4
Function at 0xc17883
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0x10105140]
test eax, eax
je 0xc178c2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xc178c2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xc178c2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0xc178c2
cmp dword [ecx + 0x74], 0xe
jbe 0xc178c2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0xc2c8c0
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 0xc2c8fe
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0xc2c8f6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0xc2c900
inc edx
add eax, 0x28
cmp edx, ebx
jb 0xc2c8e6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0xc2c9e0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xc2ca0f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xc2ca0f
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0xc79f4a
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, edx
push edi
mov edi, ecx
test esi, esi
jns 0xc79f64
mov edx, esi
call fcn.00c79bce
push dword [ebp + 8]
mov edx, ebx
mov ecx, edi
call fcn.00c79f8d
pop ecx
test esi, esi
jle 0xc79f82
mov ecx, edi
mov edx, esi
pop edi
pop esi
pop ebx
pop ebp
jmp fcn.00c79bce
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0xcaab21
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0xcaab5e
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0xcaab57
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0xcaab63
add edx, 0x28
cmp edx, esi
jne 0xcaab48
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0xcaab60

Function at 0xcb8107
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0xcb8144
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0xcb813d
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0xcb8149
add edx, 0x28
cmp edx, esi
jne 0xcb812e
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0xcb8146
Function at 0xcd9d81
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x10]
test edi, edi
je 0xcd9f43
mov ax, word [esi + 2]
xor ecx, ecx
mov word [ebp - 0x20], ax
add edi, 0xa
mov al, byte [esi + 4]
mov byte [ebp - 0x1e], al
xor eax, eax
mov dword [ebp - 0x1c], ecx
mov word [ebp - 0x18], ax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov byte [ebp - 1], cl
jmp 0xcd9dec
push dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
push dword [ebp + 8]
call fcn.00cd954f
test eax, eax
js 0xcd9ec9
lea eax, [ebp - 0x20]
mov ecx, esi
je 0xcd9ea1
push dword [ebp - 8]
push eax
call fcn.00cd9cee
mov edi, eax
push dword [esi + 0x14]
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea ecx, [ebp - 0x20]
call fcn.00cd96b3
mov bl, al
test bl, bl
jne 0xcd9dc0
mov edi, dword [ebp - 8]
mov dword [esi + 0x14], edi
xor ebx, ebx
cmp byte [ebp - 1], bl
jne 0xcd9e32
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
and dword [ebp - 0x14], ebx
mov word [ebp - 0x18], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], eax
call fcn.00cd95c2
mov ebx, eax
mov ax, word [esi + 6]
lea ecx, [ebp - 0x34]
and dword [ebp - 0x28], 0
mov word [ebp - 0x34], ax
mov al, byte [esi + 8]
mov byte [ebp - 0x32], al
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
mov word [ebp - 0x2c], ax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
call fcn.00cd95c2
add eax, ebx
mov ebx, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
mov edx, ebx
mov eax, dword [esi + 0x14]
sub edx, eax
cmp eax, ebx
sbb ecx, ecx
and ecx, edx
mov edx, dword [ebp - 0xc]
cmp ecx, edx
jb 0xcd9f43
sub ebx, edx
lea ecx, [edx + edi]
sub ebx, edi
sub eax, edi
je 0xcd9efa
test ecx, ecx
jne 0xcd9ed9
call dword [0x4151fc]
mov dword [eax], 0x16
call fcn.00ce0938
jmp 0xcd9efa
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 8]
push eax
call fcn.00cd9bb8
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
jne 0xcd9ec3
mov al, 1
jmp 0xcd9f45
mov byte [ebp - 1], 1
jmp 0xcd9ecc
mov dword [ebp - 8], edi
test bl, bl
jne 0xcd9e0a
jmp 0xcd9e07
test edi, edi
je 0xcd9e8e
cmp ebx, eax
jae 0xcd9eef
call dword [0x4151fc]
mov dword [eax], 0x22
jmp 0xcd9e9a
push eax
push edi
push ecx
call fcn.00ce0d15
add esp, 0xc
mov eax, dword [esi + 0x14]
add eax, dword [ebp - 0xc]
cmp byte [ebp - 1], 0
mov dword [esi + 0x14], eax
jne 0xcd9f18
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.00cd95ed
jmp 0xcd9f2b
cmp byte [ebp - 0x1e], 0
je 0xcd9f2b
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
inc eax
push eax
call fcn.00cd957c
push dword [esi + 0x14]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00cd95ed
mov byte [esi + 0x20], 1
jmp 0xcd9ebc
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0xcdfdc9
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0xcdfe06
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0xcdfdff
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0xcdfe0b
add edx, 0x28
cmp edx, esi
jne 0xcdfdf0
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0xcdfe08

Function at 0xce034a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [fcn.00415090]
test eax, eax
je 0xce0389
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xce0389
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xce0389
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0xce0389
cmp dword [ecx + 0x74], 0xe
jbe 0xce0389
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0xce8cb4
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0xce8cf1
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0xce8cea
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0xce8cf6
add edx, 0x28
cmp edx, esi
jne 0xce8cdb
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0xce8cf3

Function at 0xd32b50
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 0xd32b8e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0xd32b86
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0xd32b90
inc edx
add eax, 0x28
cmp edx, ebx
jb 0xd32b76
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0xd32c70
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xd32c9f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xd32c9f
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401064
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
xor esi, esi
push ebx
push 0x80
push 4
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
inc esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4010a2
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 3
jl 0x401072
jmp 0x4010e3
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4010dc
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call esi
push ebx
lea eax, [ebp - 4]
push eax
push 2
push 0x4251cc
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402024
Capabilities:
Create raw socket
Create thread
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x42a2e4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp esi, ebx
je 0x402191
push 1
push 3
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x42c698], eax
cmp eax, 0xffffffff
je 0x402191
push ebx
push ebx
push 0x401f9a
mov dword [0x440b9c], ebx
call fcn.0040ec4b
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40208a
push str.can_create_thread_for_ping_Range
push 1
call fcn.004010eb
pop ecx
pop ecx
jmp 0x402191
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi]
push 2
mov dword [ebp - 0x14], eax
pop eax
mov word [ebp - 0x18], ax
xor eax, eax
push 0xd8
mov word [ebp - 0x16], ax
mov byte [ebp - 0x48], 8
mov byte [ebp - 0x47], al
mov word [ebp - 0x46], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x44], ax
xor eax, eax
mov cl, al
add cl, 0x20
mov byte [ebp + eax - 0x3b], cl
inc eax
cmp eax, 0x20
jl 0x4020c1
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x4c], ebx
cmp dword [ebp + 8], ebx
jbe 0x40216d
mov edi, dword [sym.imp.WS2_32.dll_htonl]
mov ebx, dword [sym.imp.WS2_32.dll_sendto]
push dword [ebp - 0x4c]
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x42], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call edi
mov dword [ebp - 0x3f], eax
xor eax, eax
mov word [ebp - 0x46], ax
lea eax, [ebp - 0x48]
push 0x2d
push eax
call fcn.0040c930
pop ecx
pop ecx
push 0x10
mov word [ebp - 0x46], ax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x2d
lea eax, [ebp - 0x48]
push eax
push dword [0x42c698]
call ebx
push 5
call esi
push 0x10
lea eax, [ebp - 0x18]
push eax
push 0
push 0x2d
lea eax, [ebp - 0x48]
push eax
push dword [0x42c698]
call ebx
push dword [ebp - 0x14]
call fcn.00407b57
pop ecx
push eax
call edi
push 0x14
mov dword [ebp - 0x14], eax
call esi
inc dword [ebp - 0x4c]
movzx eax, word [ebp - 0x4c]
cmp eax, dword [ebp + 8]
jb 0x4020ee
push 0x1388
call esi
push dword [0x42c698]
mov dword [0x440b9c], 1
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [0x42c698], 0xffffffff
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e92f
leave
ret

Function at 0x40380a
Capabilities:
Set environment variable

Disassembly:
push esi
push 0x1ff
push dword [esp + 0xc]
push 0x42d468
call fcn.0040f750
add esp, 0xc
call fcn.0040379b
xor esi, esi
inc esi
cmp dword [0x440ba0], esi
jle 0x403894
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov eax, dword [esi*4 + 0x42d668]
cmp byte [eax], 0x2d
jne 0x40388a
cmp dword [esi*4 + 0x42d66c], 0
je 0x40388a
mov al, byte [eax + 1]
cmp al, 0x69
je 0x40387b
cmp al, 0x6c
je 0x40386c
cmp al, 0x73
jne 0x40388a
push dword [esi*4 + 0x42d66c]
inc esi
push str.TFTP_DIR
jmp 0x403888
push dword [esi*4 + 0x42d66c]
inc esi
push str.TFTP_LOG
jmp 0x403888
push dword [esi*4 + 0x42d66c]
inc esi
push str.TFTP_INI
call edi
inc esi
cmp esi, dword [0x440ba0]
jl 0x403838
pop edi
mov eax, esi
pop esi
ret