joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437f00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov edx, dword [ecx + 4]
test edx, edx
je 0x438000
xor eax, eax
cmp dword [ecx], 0
jne 0x438005
mov dword [esp + 0x24], 0x18
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x1c], edx
mov eax, dword [ecx + 8]
mov dword [esp + 0x20], eax
mov dword [esp + 8], 0x20212e2f
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 8
ja 0x437fd3
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 8]
lea esi, [eax - 0x28ef967a]
add eax, 0x86
and eax, edx
or esi, edx
sub esi, eax
mov dword [esp + 4], esi
mov eax, dword [esp + 4]
mov edx, eax
xor edx, 0x55
and eax, 0x55
lea eax, [edx + eax*2]
inc al
mov edx, dword [esp]
mov byte [esp + edx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 9
jb 0x437f90
mov eax, dword [esp + 8]
mov esi, dword [0x448a30]
test esi, esi
je 0x438005
mov edx, dword [ebp + 8]
xor edi, edi
mov ebx, dword [0x448a34]
nop
nop
nop
nop
cmp dword [ebx + edi*8], 0x64e6a636
je 0x43800f
inc edi
cmp esi, edi
jne 0x437ff0
jmp 0x438005
mov eax, 0xc0000008
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov esi, dword [ebx + edi*8 + 4]
cmp esi, eax
je 0x438005
lea eax, [esp + 0x1c]
lea edi, [esp + 0x24]
push eax
push edi
push edx
push ecx
push 4
push dword [0x448a38]
push esi
call fcn.004395d0
add esp, 0x1c
jmp 0x438005

Function at 0x438040
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [ecx]
test eax, eax
je 0x438117
mov esi, ecx
mov dword [esp + 8], 0x20212e2f
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 8
ja 0x4380c4
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 8]
lea edi, [ecx - 0x28ef967a]
add ecx, 0x86
and ecx, edx
or edi, edx
sub edi, ecx
mov dword [esp + 4], edi
mov ecx, dword [esp + 4]
mov edx, ecx
xor edx, 0x55
and ecx, 0x55
lea ecx, [edx + ecx*2]
inc cl
mov edx, dword [esp]
mov byte [esp + edx + 8], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 9
jb 0x438080
mov ecx, dword [0x448a30]
test ecx, ecx
je 0x43810a
mov edx, dword [esp + 8]
xor edi, edi
mov ebx, dword [0x448a34]
nop
nop
nop
nop
nop
nop
cmp dword [ebx + edi*8], 0xad91fd63
je 0x4380f0
inc edi
cmp ecx, edi
jne 0x4380e0
jmp 0x43810a
mov ecx, dword [ebx + edi*8 + 4]
cmp ecx, edx
je 0x43810a
push eax
push 1
push dword [0x448a38]
push ecx
call fcn.004395d0
add esp, 0x10
mov dword [esi], 0
mov dword [esi + 4], 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x438120
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov edi, 0xc0000008
cmp dword [ecx + 4], 0
je 0x43830e
mov esi, ecx
mov eax, dword [ecx]
test eax, eax
je 0x43830e
mov dword [esp + 8], 0x20212e2f
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 8
ja 0x4381b4
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 8]
lea edi, [ecx - 0x28ef967a]
add ecx, 0x86
and ecx, edx
or edi, edx
sub edi, ecx
mov dword [esp + 0x18], edi
mov ecx, dword [esp + 0x18]
mov edx, ecx
xor edx, 0x55
and ecx, 0x55
lea ecx, [edx + ecx*2]
inc cl
mov edx, dword [esp]
mov byte [esp + edx + 8], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 9
jb 0x438170
mov ebx, dword [ebp + 0x10]
mov edi, dword [esp + 8]
mov edx, dword [0x448a30]
test edx, edx
je 0x438205
xor ecx, ecx
mov ebx, dword [0x448a34]
nop
nop
nop
cmp dword [ebx + ecx*8], 0x8d04a2b9
je 0x4381e3
inc ecx
cmp edx, ecx
jne 0x4381d0
mov ebx, dword [ebp + 0x10]
jmp 0x438205
mov ecx, dword [ebx + ecx*8 + 4]
cmp ecx, edi
mov ebx, dword [ebp + 0x10]
je 0x438205
push dword [ebp + 8]
push eax
push 2
push dword [0x448a38]
push ecx
call fcn.004395d0
add esp, 0x14
mov edi, eax
cmp dword [ebp + 0xc], 1
mov eax, ebx
sbb eax, 0
jl 0x438303
cmp edi, 0xc000010a
jne 0x438303
mov ecx, 0xffffd8f0
mov edi, dword [ebp + 0xc]
mov eax, edi
mul ecx
sub edx, edi
imul ecx, ebx, 0xffffd8f0
add ecx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov eax, dword [esi]
mov dword [esp + 8], 0x20212e2f
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 8
ja 0x4382b7
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 8]
lea edi, [ecx - 0x28ef967a]
add ecx, 0x86
and ecx, edx
or edi, edx
sub edi, ecx
mov dword [esp], edi
mov ecx, dword [esp]
mov edx, ecx
xor edx, 0x55
and ecx, 0x55
lea ecx, [edx + ecx*2]
inc cl
mov edx, dword [esp + 4]
mov byte [esp + edx + 8], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 9
jb 0x438270
mov edi, dword [esp + 8]
mov ecx, dword [0x448a30]
test ecx, ecx
je 0x438303
xor edx, edx
mov ebx, dword [0x448a34]
nop
nop
nop
cmp dword [ebx + edx*8], 0x10c53004
je 0x4382e0
inc edx
cmp ecx, edx
jne 0x4382d0
jmp 0x438303
mov ecx, dword [ebx + edx*8 + 4]
cmp ecx, edi
je 0x438303
lea edx, [esp + 0x18]
push edx
push 0
push eax
push 3
push dword [0x448a38]
push ecx
call fcn.004395d0
add esp, 0x18
mov edi, eax
test edi, edi
js 0x43830e
mov ecx, esi
call fcn.00438040
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x438320
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
mov edx, dword [ebp + 0x14]
test edx, edx
jne 0x438337
lea edx, [esp + 0x18]
mov ecx, dword [ecx]
mov dword [esp + 8], 0x20212e2f
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 8
ja 0x4383a3
nop
nop
nop
mov eax, dword [esp]
mov esi, dword [esp]
movzx esi, byte [esp + esi + 8]
lea edi, [eax - 0x28ef967a]
add eax, 0x86
and eax, esi
or edi, esi
sub edi, eax
mov dword [esp + 4], edi
mov eax, dword [esp + 4]
mov esi, eax
xor esi, 0x55
and eax, 0x55
lea eax, [esi + eax*2]
inc al
mov esi, dword [esp]
mov byte [esp + esi + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 9
jb 0x438360
mov eax, dword [esp + 8]
mov esi, dword [0x448a30]
test esi, esi
je 0x4383f4
xor edi, edi
mov ebx, dword [0x448a34]
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebx + edi*8], 0xbdf759f
je 0x4383d0
inc edi
cmp esi, edi
jne 0x4383c0
jmp 0x4383f4
mov esi, dword [ebx + edi*8 + 4]
cmp esi, eax
je 0x4383f4
push edx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ecx
push 5
push dword [0x448a38]
push esi
call fcn.004395d0
add esp, 0x20
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
Function at 0x43a2f2
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x60
mov edi, dword [ebp + 8]
movzx eax, word [edi]
mov dword [esp + 0x30], 0x4b4a2b19
mov dword [esp + 0x34], 0
mov byte [esp + 0x38], 0
mov dword [esp + 8], 0
mov ecx, dword [esp + 8]
cmp ecx, 8
ja 0x43a231
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 8]
mov edx, dword [esp + 8]
movzx edx, byte [esp + edx + 0x30]
lea esi, [ecx + 0x71712b4a]
and esi, edx
add ecx, edx
add ecx, 0x71712b4a
add esi, esi
sub ecx, esi
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x24]
add cl, 0xfa
mov edx, dword [esp + 8]
mov byte [esp + edx + 0x30], cl
inc dword [esp + 8]
mov ecx, dword [esp + 8]
cmp ecx, 9
jb 0x43a1f0
xor ecx, ecx
cmp dword [esp + 0x30], eax
setne cl
xor eax, eax
jmp dword [ecx*4 + 0x446b94]
mov eax, dword [edi + 0x3c]
mov dword [esp + 4], eax
mov ecx, dword [edi + eax]
mov dword [esp + 0x30], 0xabaae01c
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 8], 0
mov edx, dword [esp + 8]
cmp edx, 0xf
ja 0x43a2c7
nop
nop
mov edx, dword [esp + 8]
mov esi, dword [esp + 8]
movzx esi, byte [esp + esi + 0x30]
lea edi, [edx + 0x79f60f9a]
mov ebx, esi
not ebx
or ebx, edi
and edi, esi
add edi, ebx
neg edi
add edx, edi
add edx, 0x79f60f99
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x24]
add dl, 0xca
mov esi, dword [esp + 8]
mov byte [esp + esi + 0x30], dl
inc dword [esp + 8]
mov edx, dword [esp + 8]
cmp edx, 0x10
jb 0x43a280
xor edx, edx
cmp ecx, dword [esp + 0x30]
setne dl
xor eax, eax
mov esi, dword [ebp + 8]
jmp dword [edx*4 + 0x446b9c]
mov ecx, dword [case.0x43a2d5.5]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp ecx
xor ecx, ecx
mov eax, dword [esp + 4]
cmp dword [esi + eax + 0x7c], 0
sete cl
xor eax, eax
jmp dword [ecx*4 + 0x446bb4]
mov eax, dword [esp + 4]
mov ecx, dword [esi + eax + 0x78]
xor edx, edx
test ecx, ecx
sete dl
xor eax, eax
mov dword [esp + 0x1c], ecx
jmp dword [edx*4 + 0x446bbc]
mov eax, dword [esi + ecx + 0x20]
add eax, esi
mov dword [esp + 0x50], eax
mov eax, dword [esi + ecx + 0x24]
add eax, esi
mov dword [esp + 0x2c], eax
mov eax, dword [esi + ecx + 0x1c]
add eax, esi
mov dword [esp + 0x28], eax
mov edx, dword [0x448a34]
xor eax, eax
test edx, edx
sete al
jmp dword [eax*4 + 0x446bc4]
mov ebx, edx
mov edi, dword [0x448a30]
mov ecx, dword [esi + ecx + 0x18]
mov eax, dword [0x446be4]
nop
nop
nop
nop
nop
nop
nop
nop
jmp eax
jmp dword [0x446bd8]
mov edi, ecx
mov eax, dword [esi + ecx + 0x18]
mov ecx, 0xffffffff
cmp eax, 0x20000000
jae 0x43a3bd
shl eax, 3
mov ecx, eax
push ecx
call fcn.00409310
add esp, 4
mov dword [0x448a34], eax
xor edx, edx
xor eax, eax
mov ecx, edi
cmp edx, dword [esi + edi + 0x18]
setb al
mov dword [esp + 0x14], 0
jmp dword [eax*4 + 0x446c04]
mov ecx, dword [0x446d58]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp ecx
Function at 0x43ae30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x10
mov esi, esp
mov ecx, dword [ebp + 8]
push eax
sub esp, 0xc
mov eax, esp
and eax, 0xfffffff8
mov esp, eax
mov dword [eax], 0xaba4a556
mov dword [eax + 4], 0
mov word [eax + 8], 0
mov dword [esi], 0
mov edx, dword [esi]
cmp edx, 9
ja 0x43aea4
nop
nop
nop
nop
mov edx, dword [esi]
mov edi, dword [esi]
movzx edi, byte [eax + edi]
add edx, 0xda9b19c5
xor edx, edi
mov dword [esi + 4], edx
mov edx, dword [esi + 4]
mov edi, edx
xor edi, 0x9c
and edx, 0x1c
lea edx, [edi + edx*2]
inc dl
mov edi, dword [esi]
mov byte [eax + edi], dl
inc dword [esi]
mov edx, dword [esi]
cmp edx, 0xa
jb 0x43ae70
mov eax, dword [eax]
mov eax, dword fs:[eax]
xor edx, edx
test ecx, ecx
sete dl
jmp dword [edx*4 + 0x447458]
jmp 0x43aebc
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
add edx, 0xc
mov edi, dword [edx]
mov eax, dword [case.0x43aeb0.4]
nop
nop
nop
nop
nop
nop
nop
jmp eax
xor eax, eax
jmp 0x43aeee
mov ebx, dword [case.0x43aeb0.9]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp ebx
xor ebx, ebx
cmp edi, edx
setne bl
jmp dword [ebx*4 + 0x447480]
Function at 0x4035ab
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x403600
push dword [esp + 0x10]
push 0x40352a
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x54a9f8]
test esi, esi
je 0x403659
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x4035f8
cmp byte [esi + 0x10], 0
je 0x4035f8
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x4035d4
jmp 0x403659
mov esi, dword [0x54a9f8]
test esi, esi
je 0x403659
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x403652
cmp byte [esi + 0x11], 0
je 0x40362e
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x403645
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push ebp
push 0x54a9f8
call fcn.0040ef9f
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x40360d
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x403cf0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x54aa04], 0
jne 0x403cfe
call fcn.00403c90
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x54aa08]
call esi
test eax, eax
jne 0x403d21
call fcn.00403c90
push dword [0x54aa08]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x403d30
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x403d90
mov ebx, 0x10
test edi, edi
jns 0x403d99
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x403d62
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x403db0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x54aa04], 0
jne 0x403dbe
call fcn.00403c90
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x54aa08]
call esi
mov edx, eax
test edx, edx
jne 0x403de5
call fcn.00403c90
push dword [0x54aa08]
call esi
mov edx, eax
mov ebx, dword [edx]
mov esi, dword [edx + 4]
mov ebp, dword [esp + 0x14]
inc ebp
mov edi, dword [edx + ebx*4 + 0x4c]
mov eax, dword [edx + ebx*4 + 8]
mov ecx, dword [edx + esi*4 + 8]
ror edi, 0xd
add edi, dword [edx + esi*4 + 0x4c]
dec esi
ror eax, 5
add eax, ecx
mov dword [edx + ebx*4 + 8], edi
mov dword [edx + ebx*4 + 0x4c], eax
dec ebx
jns 0x403e18
mov ebx, 0x10
test esi, esi
jns 0x403e21
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x403e30
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x404468
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x4044f2
cmp dword [ebp + 0xc], edi
je 0x4044f2
push esi
push 0x28
push 8
push dword [0x54a950]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 8]
mov esi, eax
or dword [esi + 4], 0xffffffff
mov dword [esi], edi
call sub.MSVCRT.dll__wcsdup
push dword [ebp + 0xc]
mov dword [esi + 8], eax
call sub.MSVCRT.dll__wcsdup
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
pop ecx
pop ecx
test al, 1
je 0x4044e1
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x4045f6
push 0x2000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4044d9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
jmp 0x4044f1
push esi
call fcn.00404647
jmp 0x4044f0
push esi
call fcn.0040450b
push esi
mov edi, eax
call fcn.00404647
pop ecx
pop ecx
pop esi
mov eax, edi
pop edi
pop ebp
ret 0xc
Function at 0x40450b
Capabilities:
Delete file

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov eax, dword [esi + 8]
mov ebp, dword [esi + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebp
call fcn.004273f0
mov edi, eax
test edi, edi
je 0x4045db
push dword [esp + 0x18]
call fcn.0044c5d0
push ebx
push pe_nt_image_headers32
push 2
push ebx
push 1
push 0xc0000000
push ebp
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4045cb
test byte [esi + 0x1c], 2
mov dword [esi + 0x10], ebp
jne 0x404574
push 1
push 0x34
push edi
call fcn.00427480
add esp, 0xc
push dword [esp + 0x18]
push 0x2712
push edi
call fcn.00427480
push 0x404605
push 0x4e2b
push edi
call fcn.00427480
push esi
push 0x2711
push edi
call fcn.00427480
push edi
call fcn.00427470
add esp, 0x28
test eax, eax
jne 0x4045b6
xor ebx, ebx
mov dword [esi + 4], 0xfffffffe
inc ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x4045cb
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esp + 0x18]
call fcn.0044c5c0
push edi
call fcn.004273d0
pop ecx
cmp dword [esi + 4], 0xfffffffe
je 0x4045ee
cmp dword [esi + 4], 0xfffffffc
je 0x4045ee
mov dword [esi + 4], 0xfffffffd
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret

Function at 0x40472c
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push edi
xor edi, edi
inc edi
cmp dword [0x54aa30], 0
jne 0x404758
push 0x40467b
push 0x10
push 0x2c
mov dword [0x54aa30], edi
call fcn.0040e96a
mov dword [0x54aa2c], eax
cmp word [0x54aa24], 0
jne 0x4047f4
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
jne 0x404783
mov word [0x54aa24], di
jmp 0x40478b
xor eax, eax
mov word [0x54aa24], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x54aa40], eax
test eax, eax
je 0x4047f4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x454038
push eax
call esi
push 0x454044
push dword [0x54aa40]
mov dword [0x54aa34], eax
call esi
push str.getnameinfo
push dword [0x54aa40]
mov dword [0x54aa38], eax
call esi
cmp dword [0x54aa34], 0
mov dword [0x54aa3c], eax
pop esi
je 0x4047f4
cmp dword [0x54aa38], 0
je 0x4047f4
test eax, eax
je 0x4047f4
mov dword [0x54aa28], edi
movsx eax, word [0x54aa24]
pop edi
add esp, 0x190
ret
Function at 0x407a90
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x407acc
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x407e70
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x407ed5
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x407ecd
push dword [esp + 0x10]
push dword [0x54b2e4]
call fcn.0040e897
test eax, eax
je 0x407ec3
cmp dword [eax + 4], 0
je 0x407eb2
push edi
push esi
push eax
call fcn.00408440
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc
Function at 0x407f90
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x54a950]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x408114
mov cl, byte [esp + 3]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov esi, edx
mov edi, edi
cmp ebp, 0xffffffff
je 0x407fde
test ebp, ebp
je 0x408080
dec ebp
cmp dword [ebx + 4], 0
je 0x407ff7
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00408550
mov dword [esp + 0x14], eax
jmp 0x408011
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x13]
cmp eax, 1
jne 0x408080
test cl, cl
je 0x408025
mov byte [esi], cl
inc esi
mov cl, byte [esp + 0x13]
mov eax, dword [esp + 0x18]
mov edi, esi
mov edx, dword [esp + 0x20]
dec eax
sub edi, edx
cmp edi, eax
jle 0x408060
mov eax, dword [esp + 0x18]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x54a950]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x20], edx
lea esi, [edi + edx]
test cl, cl
je 0x408080
cmp dword [esp + 0x2c], 0
jne 0x407fd0
cmp cl, 0xd
je 0x408087
cmp cl, 0xa
jne 0x407fd0
dec esi
jmp 0x4080f7
cmp dword [esp + 0x2c], 0
jne 0x4080f7
cmp cl, 0xa
jne 0x40808f
dec esi
jmp 0x4080f7
cmp cl, 0xd
jne 0x4080f7
dec esi
cmp dword [ebx + 4], 0
je 0x4080ae
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00408550
mov dword [esp + 0x14], eax
jmp 0x4080c4
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x4080f7
cmp dword [ebx + 4], 0
je 0x4080d6
inc dword [ebx + 0xc]
jmp 0x4080f7
push 1
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x20]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10
Function at 0x408120
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push 0x1000
push 0
push dword [0x54a950]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [esp + 8], ecx
test ecx, ecx
je 0x4082cd
mov ax, word [esp]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], 0x1000
mov dword [esp + 0x1c], 0x7ff
cmp ebp, 0xffffffff
je 0x408174
test ebp, ebp
je 0x40822d
dec ebp
cmp dword [ebx + 4], 0
je 0x40818d
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00408550
mov dword [esp + 0x14], eax
jmp 0x4081a7
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
cmp eax, 2
mov ax, word [esp + 0x10]
jne 0x40822d
test ax, ax
je 0x4081c1
mov word [edi], ax
add edi, 2
mov ax, word [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov esi, edi
mov edx, dword [esp + 0x1c]
sub esi, ecx
sar esi, 1
cmp esi, edx
jle 0x408208
mov eax, dword [esp + 0x20]
add edx, 0x800
add eax, 0x1000
mov dword [esp + 0x1c], edx
push eax
push ecx
push 8
push dword [0x54a950]
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
mov ax, word [esp + 0x10]
mov dword [esp + 0x18], ecx
lea edi, [ecx + esi*2]
test ax, ax
je 0x40822d
cmp dword [esp + 0x30], 0
jne 0x408166
cmp ax, 0xd
je 0x408234
cmp ax, 0xa
jne 0x408166
sub edi, 2
jmp 0x4082ac
cmp dword [esp + 0x30], 0
jne 0x4082ac
cmp ax, 0xa
jne 0x40823f
sub edi, 2
jmp 0x4082ac
cmp ax, 0xd
jne 0x4082ac
sub edi, 2
cmp dword [ebx + 4], 0
je 0x408261
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00408550
mov dword [esp + 0x14], eax
jmp 0x408277
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [esp + 0x10], 0xa
je 0x4082ac
cmp dword [ebx + 4], 0
je 0x40828b
add dword [ebx + 0xc], 2
jmp 0x4082ac
push 1
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0xfffffffe
push eax
push 0xfffffffffffffffe
push dword [ebx]
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x38]
mov ecx, edi
sub ecx, dword [esp + 0x18]
sar ecx, 1
mov dword [eax], ecx
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
xor eax, eax
add esp, 0x18
ret 0x10