joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4457a0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x18]
call fcn.00407d55
push 0xffffffffffffffec
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
xor eax, 0x80000
push eax
push 0xffffffffffffffec
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 3
push 0xe5
push 0xff00
mov ecx, dword [ebp - 0x18]
call fcn.00402150
push 0
push 0x64
push 1
mov ecx, dword [ebp - 0x18]
call fcn.00401f70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x5fc]
push edx
call fcn.00401b80
push 0x2777
push 0x2776
push 0x2775
push 0x2774
mov ecx, dword [ebp - 0x18]
add ecx, 0x250
call fcn.00442e90
push 4
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x5e8]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x5e4]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x5e0]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x5dc]
push ecx
push 0
mov ecx, dword [ebp - 0x18]
add ecx, 0x250
call fcn.0040fb96
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.00401b80
push 0x104
push 0
mov edx, dword [ebp - 0x18]
add edx, 0x128
push edx
call fcn.00421a10
add esp, 0xc
push 0x104
mov eax, dword [ebp - 0x18]
add eax, 0x128
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
mov ecx, dword [ebp - 0x18]
add ecx, 0x128
push ecx
call fcn.004019c0
add esp, 8
mov byte [eax], 0
lea ecx, [ebp - 0x14]
call fcn.00401b50
lea edx, [ebp - 0x14]
push edx
call fcn.00401fa0
mov ecx, eax
call fcn.00401ef0
push 4
push 0x145
push 0x211
lea ecx, [ebp - 0x14]
call fcn.00401b30
sub eax, 0x145
cdq
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x14]
call fcn.00401b10
sub eax, 0x211
cdq
sub eax, edx
sar eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x18]
call fcn.0040fb96
push 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x74]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.00401fc0
push 1
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x74]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.00401fc0
push 0x64
push 0
mov ecx, dword [ebp - 0x18]
add ecx, 0x78
call fcn.00402210
push 0
mov ecx, dword [ebp - 0x18]
add ecx, 0xcc
call fcn.0040f869
mov ecx, dword [ebp - 0x18]
add ecx, 0x120
call fcn.00402400
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x22c
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0x24c
push edx
push 0x452358
mov eax, dword [ebp - 4]
push eax
call fcn.004213e6
add esp, 0x10
push 0
push 4
push 0
push 0
mov ecx, dword [ebp - 0x18]
push ecx
push 0x445780
call fcn.00407861
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x124], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x124]
call fcn.00402110
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
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
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408e84
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x60824fd4
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x5c7b53a1
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0xaa0058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00aa01a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xaa007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xaa006a
add dl, dl
jne 0xaa0089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xaa00dc
xor eax, eax
add dl, dl
jne 0xaa0096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xaa017d
add dl, dl
jne 0xaa00a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xaa00b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xaa00bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xaa00c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xaa00d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xaa0075
mov eax, 1
add dl, dl
jne 0xaa00ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xaa00f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xaa00e1
sub eax, ebx
mov ebx, 1
jne 0xaa0128
mov ecx, 1
add dl, dl
jne 0xaa010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xaa0119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xaa0105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xaa0075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xaa013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xaa014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xaa0136
cmp eax, 0x7d00
jae 0xaa016d
cmp eax, 0x500
jb 0xaa0168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xaa0075
cmp eax, 0x7f
ja 0xaa0170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xaa0075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xaa019e
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 0xaa0075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x51d43403
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x71644296
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x1002aef0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1002b0b4
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb000]
push edi
or ebp, 0xffffffff
jmp 0x1002af1a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1002af21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1002af10
mov eax, 1
add ebx, ebx
jne 0x1002af33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1002af28
jne 0x1002af44
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1002af28
xor ecx, ecx
sub eax, 3
jb 0x1002af58
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1002afca
mov ebp, eax
add ebx, ebx
jne 0x1002af63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1002af70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1002af94
inc ecx
add ebx, ebx
jne 0x1002af80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1002af75
jne 0x1002af91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1002af75
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1002afb4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1002afa5
jmp 0x1002af16
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1002afb4
add edi, ecx
jmp 0x1002af16
pop esi
mov edi, esi
mov ecx, 0x57
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1002afd2
cmp byte [edi], 2
jne 0x1002afd2
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 0x1002afd7
lea edi, [esi + 0x28000]
mov eax, dword [edi]
or eax, eax
je 0x1002b046
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2b530]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2b59c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1002b004
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2b5a0]
or eax, eax
je 0x1002b040
mov dword [ebx], eax
add ebx, 4
jmp 0x1002b021
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1002b077
cmp al, 0xef
ja 0x1002b06a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1002b04c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1002b059
mov ebp, dword [esi + 0x2b5a4]
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 0x1002b0ab
sub esp, 0xffffff80
jmp 0x100017ae
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401550
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0xc8
push ebx
push esi
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edx, eax
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov al, byte [edx]
test al, al
je 0x4015d0
lea esi, [esp + 0xc]
cmp ebx, 0x32
jge 0x4015d0
cmp al, 0x22
jne 0x40158b
inc edx
mov ecx, 1
jmp 0x40158d
xor ecx, ecx
mov dword [esi], edx
mov al, byte [edx]
inc ebx
add esi, 4
test al, al
je 0x4015b3
test ecx, ecx
je 0x4015a3
cmp al, 0x22
je 0x4015b3
jmp 0x4015ab
cmp al, 0x20
je 0x4015b3
cmp al, 9
je 0x4015b3
mov al, byte [edx + 1]
inc edx
test al, al
jne 0x401599
cmp byte [edx], 0
je 0x4015bc
mov byte [edx], 0
inc edx
mov al, byte [edx]
test al, al
je 0x4015c6
cmp al, 0x20
je 0x4015bb
cmp al, 9
je 0x4015bb
mov al, byte [edx]
test al, al
jne 0x40157a
lea eax, [esp + 0xc]
push eax
push ebx
call fcn.00401050
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0xc8
ret 0x10

Function at 0x402db1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x407218
cmp edx, dword [eax]
je 0x402dd3
add eax, 8
inc ecx
cmp eax, 0x4072a8
jl 0x402dc4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x407218]
jne 0x402f01
mov eax, dword [0x4079ec]
cmp eax, 1
je 0x402edb
test eax, eax
jne 0x402e04
cmp dword [0x407164], 1
je 0x402edb
cmp edx, 0xfc
je 0x402f01
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402e3b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403d50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004021c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402e7e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004021c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x406414
push edi
call fcn.00404d40
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403d50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403d60
lea eax, [ebp - 0xa0]
push 0x4063f4
push eax
call fcn.00403d60
push dword [esi + 0x40721c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403d60
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00404cb4
add esp, 0x2c
pop edi
jmp 0x402f01
lea eax, [ebp + 8]
lea esi, [esi + 0x40721c]
push 0
push eax
push dword [esi]
call fcn.004021c0
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 0x4067f0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
push esi
push 0x547c88
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x40680a
pop esi
pop ebp
pop ecx
ret
push ebx
push edi
push str.LoadLibraryExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [esp + 0x18]
mov edi, eax
push 0x547c74
push ebx
mov dword [esp + 0x18], edi
call fcn.0050b250
add esp, 8
test eax, eax
je 0x406856
test edi, edi
je 0x406847
push 8
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
test edi, edi
je 0x40687c
push str.AddDllDirectory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40687c
push 0x800
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, eax
test edi, edi
je 0x406930
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406895
sub eax, edx
lea eax, [eax + edi + 1]
push eax
call dword [0x58d0bc]
mov esi, eax
add esp, 4
test esi, esi
je 0x406926
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x406926
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4068c3
sub eax, edx
mov ecx, 0x5c
mov word [eax + esi], cx
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4068e0
sub eax, edx
lea edx, [eax + esi]
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x4068f0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40691d
push 8
push 0
push esi
call eax
push esi
mov ebp, eax
call dword [0x58d0c0]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
push esi
call dword [0x58d0c0]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret

Function at 0x406940
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
test byte [esp + 0x194], 2
je 0x406983
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x406977
mov eax, dword [esp]
cmp al, 2
jne 0x406971
shr eax, 8
cmp al, 2
je 0x406983
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
add esp, 0x190
ret
call fcn.0041aff0
test eax, eax
jne 0x4069df
push str.iphlpapi.dll
call fcn.004067f0
add esp, 4
mov dword [0x592cd0], eax
test eax, eax
je 0x4069b7
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4069b7
mov dword [0x592cd4], eax
push 3
push 2
push 0
push 6
call fcn.0041b1c0
add esp, 0x10
neg eax
sbb eax, eax
neg eax
push 0x5958a0
mov dword [0x5958a8], eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
add esp, 0x190
ret
Function at 0x40d970
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
mov eax, dword [esi + 0x78]
push edi
mov dword [esp + 0x34], eax
test eax, eax
je 0x40db45
lea eax, [esp + 0x20]
push eax
call fcn.0041add0
mov ecx, dword [eax + 4]
mov edx, dword [eax + 0xc]
mov ebp, dword [eax]
mov ebx, dword [eax + 8]
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
add esp, 4
push 0
push 0x3e8
push eax
push edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], edx
call fcn.0050a6f0
add ebp, eax
adc dword [esp + 0x14], edx
imul eax, eax, 0x3e8
sub edi, eax
imul edi, edi, 0x3e8
add ebx, edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebx
cmp ebx, 0xf4240
jl 0x40d9fc
add ebp, 1
adc dword [esp + 0x14], 0
sub ebx, 0xf4240
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0xf60]
mov edi, dword [esp + 0x40]
lea ecx, [esi + 0xf60]
test eax, eax
je 0x40da2c
mov edx, dword [eax]
cmp dword [edx + 0x20], edi
je 0x40da20
mov eax, dword [eax + 8]
test eax, eax
jne 0x40da10
jmp 0x40da2c
push 0
push eax
push ecx
call fcn.004372e0
add esp, 0xc
mov ecx, edi
lea eax, [esp + 0x10]
mov edx, esi
call fcn.0040d8c0
mov eax, dword [esi + 0xf28]
or eax, dword [esi + 0xf2c]
jne 0x40da53
cmp dword [esi + 0xf30], eax
je 0x40dadd
mov ecx, dword [esi + 0xf28]
mov edx, dword [esi + 0xf2c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 0xf30]
mov dword [eax + 4], edx
mov edx, dword [esi + 0xf34]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x2c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
call fcn.0041ae70
add esp, 0x20
test edx, edx
jg 0x40db45
jl 0x40daad
test eax, eax
jne 0x40db45
mov edi, dword [esp + 0x34]
mov edx, dword [edi + 0x5c]
lea eax, [edi + 0x5c]
push eax
lea ecx, [esi + 0xf38]
push ecx
push edx
call fcn.0043dca0
add esp, 0xc
test eax, eax
je 0x40dae1
push eax
push str.Internal_error_removing_splay_node___d_n
push esi
call fcn.0040ffd0
add esp, 0xc
jmp 0x40dae1
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0xf28], ebp
mov dword [esi + 0xf2c], eax
mov dword [esi + 0xf30], ebx
mov dword [esi + 0xf34], ecx
mov dword [esi + 0xf58], esi
mov eax, dword [edi + 0x5c]
mov ecx, dword [esi + 0xf28]
lea edx, [esi + 0xf38]
push edx
mov edx, dword [esi + 0xf2c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 0xf30]
mov dword [eax + 4], edx
mov edx, dword [esi + 0xf34]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.0043da80
add esp, 0x18
mov dword [edi + 0x5c], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x40fe70
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x40feb3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esp + 0x10]
xor ecx, ecx
cmp eax, 0x2733
sete cl
mov dword [edx], 0
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0x19
add eax, 0x38
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x40ff30
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
cmp dword [esi + 0xbfc], edi
je 0x40ffc5
cmp dword [esi + 0x620], edi
je 0x40ff85
push 1
push esi
call fcn.0040dc70
mov eax, dword [esi + 0x5b4]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x620]
push edx
push eax
push esi
call ecx
push 0
push esi
mov edi, eax
call fcn.0040dc70
add esp, 0x24
mov eax, edi
pop edi
pop esi
ret
mov eax, dword [esp + 0x10]
test eax, eax
js 0x40ffc5
cmp eax, 2
jg 0x40ffc5
mov edx, dword [esi + 0x5b0]
push edx
push 1
lea eax, [eax + eax*2 + 0x548814]
push 2
push eax
call fcn.0050401e
mov ecx, dword [esi + 0x5b0]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push ecx
push 1
push edx
push eax
call fcn.0050401e
add esp, 0x20
mov eax, edi
pop edi
pop esi
ret

Function at 0x4100a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
cmp dword [esi + 0xbfc], 0
jne 0x4100c4
cmp dword [esi + 0x5b8], 0
je 0x4101a0
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0xc]
push 0x100
push edx
call fcn.00419970
lea eax, [esp + 0x14]
add esp, 0x10
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4100f0
sub eax, edx
mov edx, dword [esi + 0x5b8]
push edi
mov edi, eax
test edx, edx
je 0x410127
cmp dword [esi + 0x1230], 0
jne 0x410127
lea ecx, [esp + 8]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x410113
mov dword [esi + 0x1230], 1
mov byte [esp + edi + 8], 0xa
inc edi
cmp dword [esi + 0xbfc], 0
je 0x41019f
cmp dword [esi + 0x620], 0
je 0x410173
push 1
push esi
call fcn.0040dc70
mov eax, dword [esi + 0x5b4]
mov edx, dword [esi + 0x620]
push eax
push edi
lea ecx, [esp + 0x18]
push ecx
push 0
push esi
call edx
push 0
push esi
call fcn.0040dc70
add esp, 0x24
pop edi
pop esi
add esp, 0x104
ret
mov eax, dword [esi + 0x5b0]
push eax
push 1
push 2
push 0x548814
call fcn.0050401e
mov ecx, dword [esi + 0x5b0]
push ecx
push 1
lea edx, [esp + 0x20]
push edi
push edx
call fcn.0050401e
add esp, 0x20
pop edi
pop esi
add esp, 0x104
ret