joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10052ba0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.10052440
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10052bd4
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x1006d220]
call dword [ebp - 8]
jmp 0x10052bda
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esp, ebp
pop ebp
ret 4

Function at 0x10052c30
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.10052480
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10052c64
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x1006d220]
call dword [ebp - 8]
jmp 0x10052c6e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret 4

Function at 0x10052c80
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.100524a0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10052cb8
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
call dword [0x1006d220]
call dword [ebp - 8]
jmp 0x10052cc6
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esp, ebp
pop ebp
ret 8

Function at 0x10052cd0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.10052520
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10052d10
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x1006d220]
call dword [ebp - 8]
jmp 0x10052d2e
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.10052f20
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1005d090
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push eax
lea ecx, [ebp - 4]
call fcn.1002a520
lea ecx, [ebp - 4]
call fcn.1005d060
movzx eax, al
test eax, eax
jne 0x1005d0cd
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 4]
call fcn.1005cfa0
mov eax, dword [ebp - 0x18]
jmp 0x1005d1f5
lea ecx, [ebp - 4]
call fcn.1002a5f0
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.1005d020
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x10]
sar edx, 1
mov dword [ebp - 0x14], edx
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 4]
call fcn.1002a5f0
push eax
push 0
push 0
call fcn.1005ab50
add esp, 0x20
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1005d133
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 4]
call fcn.1005cfa0
mov eax, dword [ebp - 0x20]
jmp 0x1005d1f5
push 0x66
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
push 2
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.1003aeb0
add esp, 0x10
push eax
lea ecx, [ebp - 8]
call fcn.100042f0
lea ecx, [ebp - 8]
call fcn.10023800
movzx edx, al
test edx, edx
jne 0x1005d17c
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 8]
call fcn.100237e0
lea ecx, [ebp - 4]
call fcn.1005cfa0
mov eax, dword [ebp - 0x24]
jmp 0x1005d1f5
lea ecx, [ebp - 8]
call fcn.10003a70
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 4]
call fcn.1002a5f0
mov dword [ebp - 0x2c], eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0
call fcn.1005ab50
add esp, 0x20
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x1005d1d7
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 8]
call fcn.100237e0
lea ecx, [ebp - 4]
call fcn.1005cfa0
mov eax, dword [ebp - 0x34]
jmp 0x1005d1f5
lea ecx, [ebp - 8]
call fcn.10037b40
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 8]
call fcn.100237e0
lea ecx, [ebp - 4]
call fcn.1005cfa0
mov eax, dword [ebp - 0x38]
mov esp, ebp
pop ebp
ret
Function at 0x401990
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
nop word [eax + eax]
movzx edx, byte [esi + str.80_]
movzx ecx, byte [esi + 0x427d5d]
mov eax, edx
shr eax, 3
and edx, 7
movzx eax, byte [eax + edi]
test byte [edx*2 + 0x427d18], al
setne al
mov byte [ebp + esi - 0x144], al
mov eax, ecx
shr eax, 3
and ecx, 7
movzx eax, byte [eax + edi]
test byte [ecx*2 + 0x427d18], al
movzx ecx, byte [esi + 0x427d5e]
setne al
mov byte [ebp + esi - 0x143], al
mov eax, ecx
shr eax, 3
and ecx, 7
movzx eax, byte [eax + edi]
test byte [ecx*2 + 0x427d18], al
movzx ecx, byte [esi + 0x427d5f]
setne al
mov byte [ebp + esi - 0x142], al
mov eax, ecx
shr eax, 3
and ecx, 7
movzx eax, byte [eax + edi]
test byte [ecx*2 + 0x427d18], al
setne al
mov byte [ebp + esi - 0x141], al
add esi, 4
cmp esi, 0x38
jl 0x4019b0
xor ebx, ebx
nop
movzx ecx, byte [ebx + 0x427f98]
lea eax, [ebx + ebx]
lea esi, [ebp + eax*4 - 0x80]
lea edi, [ebp - 0x84]
mov dword [esi], 0
lea edi, [edi + eax*4]
xor eax, eax
mov dword [edi], 0
cmp ecx, 0x1c
jge 0x401a83
mov dl, byte [ebp + ecx - 0x144]
jmp 0x401a8a
mov dl, byte [ebp + ecx - 0x160]
mov byte [ebp + eax - 0x17c], dl
inc ecx
inc eax
cmp eax, 0x1c
jl 0x401a75
movzx eax, byte [ebx + 0x427f98]
mov ecx, 0x1c
add eax, ecx
cmp eax, 0x38
jge 0x401ab4
mov dl, byte [ebp + eax - 0x144]
jmp 0x401abb
mov dl, byte [ebp + eax - 0x160]
mov byte [ebp + ecx - 0x17c], dl
inc eax
inc ecx
cmp ecx, 0x38
jl 0x401aa6
xor eax, eax
nop dword [eax + eax]
movzx ecx, byte [eax + 0x427d2c]
cmp byte [ebp + ecx - 0x17c], 0
je 0x401aea
mov ecx, dword [eax*4 + 0x427ab8]
or dword [edi], ecx
movzx ecx, byte [eax + 0x427d44]
cmp byte [ebp + ecx - 0x17c], 0
je 0x401b04
mov ecx, dword [eax*4 + 0x427ab8]
or dword [esi], ecx
inc eax
cmp eax, 0x18
jl 0x401ad0
inc ebx
cmp ebx, 0x10
jl 0x401a50
lea eax, [ebp - 0x104]
mov dword [ebp - 0x10c], 0x10
lea ebx, [ebp - 0x84]
mov dword [ebp - 0x108], eax
mov edi, dword [ebx + 4]
lea ebx, [ebx + 8]
mov esi, dword [ebx - 8]
mov edx, edi
shr edx, 4
mov eax, edi
and eax, 0xfc0
and edx, 0xfc000
or edx, eax
mov ecx, esi
and ecx, 0xfc0
shr edx, 6
shl ecx, 4
mov eax, esi
and eax, 0xfc0000
or ecx, eax
mov eax, dword [ebp - 0x108]
shl ecx, 6
or edx, ecx
mov ecx, esi
and ecx, 0x3f
and esi, 0x3f000
mov dword [eax], edx
mov edx, eax
shl ecx, 4
mov eax, edi
or ecx, esi
shr eax, 4
shl ecx, 0xc
and eax, 0x3f00
or ecx, eax
and edi, 0x3f
or ecx, edi
mov dword [edx + 4], ecx
add edx, 8
sub dword [ebp - 0x10c], 1
mov dword [ebp - 0x108], edx
jne 0x401b30
mov ecx, 0x20
lea esi, [ebp - 0x104]
mov edi, 0x42cc50
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004032e5
mov esp, ebp
pop ebp
ret
Function at 0x410e30
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x410ecd
push ebx
push esi
call fcn.00410df9
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00410d42
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x410e7a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x410ecc
push edi
push eax
call fcn.0040fa6b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x410e9a
call fcn.0040fcd6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x410ecb
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00410d42
add esp, 0x20
test eax, eax
jne 0x410eb9
push edi
call fcn.0040fcd6
jmp 0x410ec1
push ebx
call fcn.0040fcd6
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x413f19
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x421080
push 0x421078
push str.FlsAlloc
push 0x1e
call fcn.00413d86
mov esi, eax
add esp, 0x10
test esi, esi
je 0x413f4d
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d14c]
call esi
jmp 0x413f53
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x413f97
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x421090
push 0x421088
push str.FlsGetValue
push 0x20
call fcn.00413d86
mov esi, eax
add esp, 0x10
test esi, esi
je 0x413fce
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d14c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x415c88
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00415af9

Function at 0x416082
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0041c5b0
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00414cec
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4160c4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x416220
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041c5e0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x42c850]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00417079
mov ecx, dword [esi*4 + 0x42c850]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x416219
cmp eax, dword [edi + ecx + 0x24]
jne 0x416219
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416219
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00417079
add esp, 0x14
test edx, edx
jl 0x416219
jg 0x41618f
test eax, eax
jb 0x416219
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x416219
jl 0x4161a9
cmp dword [ebp - 0x1008], eax
ja 0x416219
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4161c7
test ebx, ebx
je 0x416200
cmp ecx, edi
jae 0x416200
mov al, byte [ecx]
cmp al, 0xd
jne 0x4161e1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4161ed
cmp byte [ecx + 1], 0xa
jne 0x4161ed
inc ecx
jmp 0x4161ed
movzx eax, al
movsx eax, byte [eax + 0x42b7a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4161c7
cmp edx, ebx
jne 0x4161c7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41621e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004032e5
leave
ret
Function at 0x416517
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x42c850]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x416557
cmp byte [ebx], 0xa
jne 0x416557
or byte [eax + edi + 0x28], 4
jmp 0x41655c
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41665a
mov al, byte [edx]
cmp al, 0x1a
je 0x41663c
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41658b
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4165b0
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4165ba
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41656d
jmp 0x41665a
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416637
cmp dword [ebp - 0xc], 0
je 0x416637
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x42c850]
test byte [eax + edi + 0x28], 0x48
je 0x416611
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4165fc
mov byte [esi], dl
jmp 0x41660d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42c850]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41665a
cmp byte [ebp - 1], 0xa
jne 0x416620
cmp esi, ebx
jne 0x416620
mov byte [esi], 0xa
jmp 0x416659
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00417097
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41665a
mov byte [esi], 0xd
jmp 0x416659
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x42c850]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x416656
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41665a
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x416663
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x42c850]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4166a6
cmp word [esi], dx
jne 0x4166a6
or byte [edi + eax + 0x28], 4
jmp 0x4166ab
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4167fe
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4167de
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4166ed
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x416723
cmp eax, edx
jae 0x41672f
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4166c5
jmp 0x4167fe
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4167da
cmp dword [ebp - 0x14], 0
je 0x4167da
mov eax, dword [ebx*4 + 0x42c850]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4167b2
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41677b
mov word [esi], cx
jmp 0x4167ae
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x42c850]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x42c850]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x42c850]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4167fe
pop ebx
cmp word [ebp - 4], bx
jne 0x4167c3
cmp esi, dword [ebp + 0xc]
jne 0x4167c3
mov word [esi], bx
jmp 0x4167fb
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00417097
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4167fe
push 0xd
jmp 0x4167f7
mov ecx, dword [ebx*4 + 0x42c850]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4167f5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4167fe
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4026f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
invalid
invalid

Function at 0x403e70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
mov eax, 0xcccccccc
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0x1300
cmp dword [ebp + 8], 0x834
jb 0x403ee4
cmp dword [ebp + 8], 0xbb7
ja 0x403ee4
mov esi, esp
push 2
push 0
push str.netmsg.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp esi, esp
call fcn.00415464
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x403ee4
mov eax, dword [ebp - 0x18]
or eax, 0x800
mov dword [ebp - 0x18], eax
mov esi, esp
push 0
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0x400
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
cmp esi, esp
call fcn.00415464
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x403f57
mov esi, esp
push 0
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edi, esp
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp edi, esp
call fcn.00415464
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, esp
call fcn.00415464
mov esi, esp
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, esp
call fcn.00415464
cmp dword [ebp - 4], 0
je 0x403f70
mov esi, esp
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp esi, esp
call fcn.00415464
push edx
mov ecx, ebp
push eax
lea edx, [0x403f94]
call fcn.00415487
pop eax
pop edx
pop edi
pop esi
add esp, 0x24
cmp ebp, esp
call fcn.00415464
mov esp, ebp
pop ebp
ret
Function at 0x404c60
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
push edi
lea edi, [ebp - 0x60]
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov byte [ebp - 0x5d], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00404950
mov dword [ebp - 0x54], 0
cmp dword [ebp + 0x10], 0
je 0x404d7a
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
mov esi, esp
push 0
lea ecx, [ebp - 0x3c]
call fcn.00404a10
push eax
mov eax, dword [ebp - 0x54]
push eax
push 0
push 1
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_WSASend]
cmp esi, esp
call fcn.00415464
mov byte [ebp - 0x5d], 1
mov dword [ebp - 4], eax
cmp byte [ebp - 0x5d], 0
jne 0x404ce8
push 0x404e20
call fcn.00415940
add esp, 4
mov eax, dword [ebp + 0x14]
push eax
cmp dword [ebp - 4], 0
sete cl
movzx edx, cl
push edx
lea ecx, [ebp - 0x3c]
call fcn.00404a30
mov byte [ebp - 0x5d], 1
mov dword [ebp - 4], eax
cmp byte [ebp - 0x5d], 0
jne 0x404d19
push 0x404e20
call fcn.00415940
add esp, 4
cmp dword [ebp - 4], 0
je 0x404d21
jmp 0x404d7a
mov esi, esp
lea eax, [ebp - 0x54]
push eax
push 0
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00404a10
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
cmp esi, esp
call fcn.00415464
test eax, eax
jne 0x404d63
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00415464
mov byte [ebp - 0x5d], 1
mov dword [ebp - 4], eax
jmp 0x404d7a
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x48]
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp - 0x48]
mov dword [ebp + 0x10], ecx
jmp 0x404c8e
cmp byte [ebp - 0x5d], 0
jne 0x404d8d
push 0x404e20
call fcn.00415940
add esp, 4
mov edx, dword [ebp - 4]
mov dword [ebp - 0x5c], edx
lea ecx, [ebp - 0x3c]
call fcn.004049d0
mov eax, dword [ebp - 0x5c]
push edx
mov ecx, ebp
push eax
lea edx, [0x404dc0]
call fcn.00415487
pop eax
pop edx
pop edi
pop esi
add esp, 0x60
cmp ebp, esp
call fcn.00415464
mov esp, ebp
pop ebp
ret
Function at 0x404e30
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
push edi
lea edi, [ebp - 0x60]
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov byte [ebp - 0x5d], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x54]
call fcn.00404950
cmp dword [ebp + 0x10], 0
je 0x404f4a
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x28], edx
mov esi, esp
push 0
lea ecx, [ebp - 0x54]
call fcn.00404a10
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 1
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp esi, esp
call fcn.00415464
mov byte [ebp - 0x5d], 1
mov dword [ebp - 4], eax
cmp byte [ebp - 0x5d], 0
jne 0x404eb8
push 0x404ff4
call fcn.00415940
add esp, 4
mov eax, dword [ebp + 0x14]
push eax
cmp dword [ebp - 4], 0
sete cl
movzx edx, cl
push edx
lea ecx, [ebp - 0x54]
call fcn.00404a30
mov byte [ebp - 0x5d], 1
mov dword [ebp - 4], eax
cmp byte [ebp - 0x5d], 0
jne 0x404ee9
push 0x404ff4
call fcn.00415940
add esp, 4
cmp dword [ebp - 4], 0
je 0x404ef1
jmp 0x404f4a
mov esi, esp
lea eax, [ebp - 0x18]
push eax
push 0
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x54]
call fcn.00404a10
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
cmp esi, esp
call fcn.00415464
test eax, eax
jne 0x404f33
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00415464
mov byte [ebp - 0x5d], 1
mov dword [ebp - 4], eax
jmp 0x404f4a
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0xc]
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp - 0xc]
mov dword [ebp + 0x10], ecx
jmp 0x404e5e
cmp byte [ebp - 0x5d], 0
jne 0x404f5d
push 0x404ff4
call fcn.00415940
add esp, 4
mov edx, dword [ebp - 4]
mov dword [ebp - 0x5c], edx
lea ecx, [ebp - 0x54]
call fcn.004049d0
mov eax, dword [ebp - 0x5c]
push edx
mov ecx, ebp
push eax
lea edx, [0x404f90]
call fcn.00415487
pop eax
pop edx
pop edi
pop esi
add esp, 0x60
cmp ebp, esp
call fcn.00415464
mov esp, ebp
pop ebp
ret