joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

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

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x40288e
pop dword [ebp - 0x4c]
mov eax, 0x40288e
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x22219885
sub dword [ebp - 0x5c], 0xd3cf533a
mov dword [ebp - 0x58], 0x1d26e12a
add dword [ebp - 0x58], 0x150c6b1b
mov dword [ebp - 0x54], 0xd420a665
add dword [ebp - 0x54], 0x782b9dc9
mov dword [ebp - 0x50], 0x33ebb628
sub dword [ebp - 0x50], 0x33ebb628
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xe4bd43a
add dword [ebp - 0x5c], 0x6626951c
mov dword [ebp - 0x58], 0x58f4ec10
add dword [ebp - 0x58], 0xe8777565
mov dword [ebp - 0x54], 0x724a7bb4
sub dword [ebp - 0x54], 0xedb0f48
mov dword [ebp - 0x50], 0x70642284
add dword [ebp - 0x50], 0x8f9bdd7c
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0xc650a369
add eax, 0x39efdd6b
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3a602
push 0
call eax
mov ecx, 0x571e
mov edx, eax
mov ebx, 0x411000
add ebx, dword [ebp - 0x4c]
mov esi, 0xbf005da2
sub esi, 0xc0f6c62
sub dword [ebp - 0x14], 0x1a89ca89
mov edi, dword [ebx]
add dword [ebp - 0x38], 0xcca5b6dc
sub edi, esi
sub dword [ebp - 0x10], 0x1b92bb23
mov dword [edx], edi
xor dword [ebp - 4], ecx
add edx, 4
add ebx, 4
loop 0x40299a
add eax, 0x14f4b
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00409a27
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00409a27
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00409a27
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00409a27
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00409a27
mov dword [0x41203c], eax
call fcn.00409a27
test eax, eax
jge 0x402550
push 8
call fcn.00409a27
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00409a27
pop ecx
push 1
call fcn.00409a27
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00409a27
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00409a27
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00409a27
jmp 0x402495

Function at 0x409a27
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x409a36
pop dword [ebp - 0x48]
mov eax, 0xa6e28fe8
sub eax, 0xa6a1f5b2
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x35e6e
push 0
mov eax, 0x8426a6f9
sub eax, 0x83e5c621
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x93dc09f0
sub ecx, 0x93dbcf49
xor ebx, ebx
add ebx, eax
mov edi, 0x413bc4
add edi, dword [ebp - 0x48]
mov edx, 0xf9449752
add edx, 0xac4e6c69
xor dword [ebp - 0x28], eax
mov esi, dword [edi]
add esi, edx
add dword [ebp - 0x2c], edi
mov dword [ebx], esi
xor dword [ebp - 0x1c], edx
add ebx, 4
add edi, 0xd4ca3598
sub edi, 0xd4ca3594
loop 0x409a91
add eax, 0xdc4dcf6a
add eax, 0x23b30e05
mov ebx, eax
add eax, 0x2bebbb43
add eax, 0xd41444c2
mov ecx, 0x400000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x407fbf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42fd70]
jne 0x407fc9
repz ret
jmp fcn.0040c2a2

Function at 0x40a758
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404b77
and dword [ebp - 4], 0
cmp dword [0x4347f8], 0
mov ebx, eax
jne 0x40a809
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a8ba
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a8ba
push eax
call fcn.00404b05
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4347f8], eax
call esi
push eax
call fcn.00404b05
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4347fc], eax
call esi
push eax
call fcn.00404b05
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x434800], eax
call esi
push eax
call fcn.00404b05
pop ecx
mov dword [0x434808], eax
test eax, eax
je 0x40a809
push 0x42bf28
push edi
call esi
push eax
call fcn.00404b05
pop ecx
mov dword [0x434804], eax
mov eax, dword [0x434804]
cmp eax, ebx
je 0x40a861
cmp dword [0x434808], ebx
je 0x40a861
push eax
call fcn.00404b80
push dword [0x434808]
mov esi, eax
call fcn.00404b80
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a861
test edi, edi
je 0x40a861
call esi
test eax, eax
je 0x40a858
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a858
test byte [ebp - 0xc], 1
jne 0x40a861
or dword [ebp + 0x10], 0x200000
jmp 0x40a89a
mov eax, dword [0x4347fc]
cmp eax, ebx
je 0x40a89a
push eax
call fcn.00404b80
pop ecx
test eax, eax
je 0x40a89a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a89a
mov eax, dword [0x434800]
cmp eax, ebx
je 0x40a89a
push eax
call fcn.00404b80
pop ecx
test eax, eax
je 0x40a89a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4347f8]
call fcn.00404b80
pop ecx
test eax, eax
je 0x40a8ba
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a8bc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x104a00b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.104a0200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x104a00d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104a00c2
add dl, dl
jne 0x104a00e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104a0134
xor eax, eax
add dl, dl
jne 0x104a00ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104a01d5
add dl, dl
jne 0x104a00fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104a0108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104a0113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104a011e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x104a012a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x104a00cd
mov eax, 1
add dl, dl
jne 0x104a0142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104a014d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104a0139
sub eax, ebx
mov ebx, 1
jne 0x104a0180
mov ecx, 1
add dl, dl
jne 0x104a0166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x104a0171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104a015d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104a00cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x104a0197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x104a01a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104a018e
cmp eax, 0x7d00
jae 0x104a01c5
cmp eax, 0x500
jb 0x104a01c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104a00cd
cmp eax, 0x7f
ja 0x104a01c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104a00cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x104a01f6
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 0x104a00cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x43e466
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.0043e444
add esp, 4
and eax, 0xff
test eax, eax
je 0x43e4ef
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x2cc
push 0
lea eax, [ebp - 0x2cc]
push eax
call fcn.0043ee90
add esp, 0xc
mov dword [ebp - 0x2cc], 0x10001
lea ecx, [ebp - 0x2cc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x43e4ed
mov ecx, dword [ebp - 0x214]
cmp ecx, dword [ebp + 0xc]
jne 0x43e4ed
jmp 0x43e4ef
jmp 0x43e46f
mov esp, ebp
pop ebp
ret

Function at 0x440bf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x445938
cmp edx, dword [eax]
je 0x440c12
add eax, 8
inc ecx
cmp eax, 0x4459c8
jl 0x440c03
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x445938]
jne 0x440d40
mov eax, dword [0x4483f8]
cmp eax, 1
je 0x440d1a
test eax, eax
jne 0x440c43
cmp dword [0x445674], 1
je 0x440d1a
cmp edx, 0xfc
je 0x440d40
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x440c7a
lea eax, [ebp - 0x1a4]
push 0x444540
push eax
call fcn.0043f000
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0043ef80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x440cbd
lea eax, [ebp - 0x1a4]
push eax
call fcn.0043ef80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x44453c
push edi
call fcn.0043f1b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x444520
push eax
call fcn.0043f000
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0043f010
lea eax, [ebp - 0xa0]
push 0x44451c
push eax
call fcn.0043f010
push dword [esi + 0x44593c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0043f010
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4444f4
push eax
call fcn.004429a8
add esp, 0x2c
pop edi
jmp 0x440d40
lea eax, [ebp + 8]
lea esi, [esi + 0x44593c]
push 0
push eax
push dword [esi]
call fcn.0043ef80
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 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x404cdf
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
push ecx
push ebx
push ebp
xor ebp, ebp
push edi
mov ecx, ebp
movzx eax, byte [ecx + str.cw]
mov byte [eax + 0x438eb8], cl
inc ecx
cmp ecx, 0x100
jl 0x404ce8
mov al, byte [ebp + str.cw]
mov byte [esp + 0x10], al
push 2
push dword [esp + 0x14]
mov byte [ebp*4 + 0x439bb9], al
mov byte [ebp*4 + 0x439bb8], al
mov byte [ebp*4 + 0x4397bb], al
mov byte [ebp*4 + 0x4397b8], al
mov byte [ebp*4 + 0x4393bb], al
mov byte [ebp*4 + 0x4393ba], al
mov byte [ebp*4 + 0x438fba], al
mov byte [ebp*4 + 0x438fb9], al
call fcn.004054a4
push 3
push dword [esp + 0x14]
mov byte [ebp*4 + 0x439bbb], al
mov byte [ebp*4 + 0x4397ba], al
mov byte [ebp*4 + 0x4393b9], al
mov byte [ebp*4 + 0x438fb8], al
call fcn.004054a4
mov bl, byte [ebp + 0x438eb8]
push 0xb
mov byte [esp + 0x10], bl
push dword [esp + 0x10]
mov byte [ebp*4 + 0x439bba], al
mov byte [ebp*4 + 0x4397b9], al
mov byte [ebp*4 + 0x4393b8], al
mov byte [ebp*4 + 0x438fbb], al
call fcn.004054a4
movzx edi, bl
push 9
push dword [esp + 0x10]
mov byte [ebp*4 + 0x43abba], al
mov byte [ebp*4 + 0x43a7b9], al
mov byte [ebp*4 + 0x43a3b8], al
mov byte [ebp*4 + 0x439fbb], al
mov byte [edi*4 + 0x43bbba], al
mov byte [edi*4 + 0x43b7b9], al
mov byte [edi*4 + 0x43b3b8], al
mov byte [edi*4 + 0x43afbb], al
call fcn.004054a4
push 0xd
push dword [esp + 0x10]
mov byte [ebp*4 + 0x43abb8], al
mov byte [ebp*4 + 0x43a7bb], al
mov byte [ebp*4 + 0x43a3ba], al
mov byte [ebp*4 + 0x439fb9], al
mov byte [edi*4 + 0x43bbb8], al
mov byte [edi*4 + 0x43b7bb], al
mov byte [edi*4 + 0x43b3ba], al
mov byte [edi*4 + 0x43afb9], al
call fcn.004054a4
push 0xe
push dword [esp + 0x10]
mov byte [ebp*4 + 0x43abb9], al
mov byte [ebp*4 + 0x43a7b8], al
mov byte [ebp*4 + 0x43a3bb], al
mov byte [ebp*4 + 0x439fba], al
mov byte [edi*4 + 0x43bbb9], al
mov byte [edi*4 + 0x43b7b8], al
mov byte [edi*4 + 0x43b3bb], al
mov byte [edi*4 + 0x43afba], al
call fcn.004054a4
mov byte [ebp*4 + 0x43abbb], al
mov byte [ebp*4 + 0x43a7ba], al
mov byte [ebp*4 + 0x43a3b9], al
mov byte [ebp*4 + 0x439fb8], al
inc ebp
mov byte [edi*4 + 0x43bbbb], al
mov byte [edi*4 + 0x43b7ba], al
mov byte [edi*4 + 0x43b3b9], al
mov byte [edi*4 + 0x43afb8], al
cmp ebp, 0x100
jl 0x404cfe
pop edi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x405582
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
mov ebp, ecx
lea eax, [esp + 0x1c]
push edi
push 0x20
push dword [esp + 0x48]
mov esi, dword [ebp + 4]
sub esi, 6
mov dword [esp + 0x18], ebp
push eax
mov dword [esp + 0x24], esi
call fcn.004151e0
add esp, 0xc
xor ebx, ebx
xor edx, edx
xor edi, edi
test esi, esi
jle 0x405602
cmp ebx, dword [ebp + 4]
jg 0x405766
cmp edi, esi
jge 0x4055ef
lea ebp, [esp + 0x20]
lea ebp, [ebp + edi*4]
cmp edx, 4
jge 0x4055eb
mov esi, dword [esp + 0x10]
lea ecx, [edx + ebx*4]
mov eax, dword [ebp]
inc edi
add ebp, 4
inc edx
mov dword [esi + ecx*4 + 0x18], eax
mov esi, dword [esp + 0x18]
cmp edi, esi
jl 0x4055cb
mov ebp, dword [esp + 0x10]
cmp edx, 4
jne 0x4055f5
inc ebx
lea eax, [edx - 4]
neg eax
sbb eax, eax
and edx, eax
cmp edi, esi
jl 0x4055b6
cmp ebx, dword [ebp + 4]
jg 0x405766
mov edi, 0x432108
movzx eax, byte [esp + esi*4 + 0x1d]
mov cl, byte [esp + 0x20]
xor cl, byte [eax + str.cw]
mov byte [esp + 0x20], cl
movzx eax, byte [esp + esi*4 + 0x1e]
mov al, byte [eax + str.cw]
xor byte [esp + 0x21], al
movzx eax, byte [esp + esi*4 + 0x1f]
mov al, byte [eax + str.cw]
xor byte [esp + 0x22], al
movzx eax, byte [esp + esi*4 + 0x1c]
mov al, byte [eax + str.cw]
xor byte [esp + 0x23], al
mov al, byte [edi]
xor al, cl
inc edi
mov byte [esp + 0x20], al
mov dword [esp + 0x1c], edi
cmp esi, 8
je 0x405691
cmp esi, 1
jle 0x405687
lea eax, [esi - 1]
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], eax
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x405675
sub dword [esp + 0x14], 1
jne 0x405672
test esi, esi
jle 0x405759
jmp 0x40570f
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], 3
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x4056a0
sub dword [esp + 0x14], 1
jne 0x40569d
movzx eax, byte [esp + 0x2c]
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], 3
mov al, byte [eax + str.cw]
xor byte [esp + 0x30], al
movzx eax, byte [esp + 0x2d]
mov al, byte [eax + str.cw]
xor byte [esp + 0x31], al
movzx eax, byte [esp + 0x2e]
mov al, byte [eax + str.cw]
xor byte [esp + 0x32], al
movzx eax, byte [esp + 0x2f]
mov al, byte [eax + str.cw]
xor byte [esp + 0x33], al
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x4056fd
sub dword [esp + 0x14], 1
jne 0x4056fa
xor edi, edi
cmp ebx, dword [ebp + 4]
jg 0x40575c
cmp edi, esi
jge 0x405746
lea ebp, [esp + 0x20]
lea ebp, [ebp + edi*4]
cmp edx, 4
jge 0x405742
mov esi, dword [esp + 0x10]
lea ecx, [edx + ebx*4]
mov eax, dword [ebp]
inc edi
add ebp, 4
inc edx
mov dword [esi + ecx*4 + 0x18], eax
mov esi, dword [esp + 0x18]
cmp edi, esi
jl 0x405722
mov ebp, dword [esp + 0x10]
cmp edx, 4
jne 0x40574c
inc ebx
lea eax, [edx - 4]
neg eax
sbb eax, eax
and edx, eax
cmp edi, esi
jl 0x405711
cmp ebx, dword [ebp + 4]
mov edi, dword [esp + 0x1c]
jle 0x405610
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 4
Function at 0x401450
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [0x403058], 1
mov dword [0x40305c], 1
mov dword [0x403060], 1
mov dword [0x40306c], 1
mov dword [ebp - 8], 0x400000
mov eax, dword [ebp - 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x40149c
xor eax, eax
jmp 0x401550
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp dword [ecx], 0x4550
je 0x4014ba
xor eax, eax
jmp 0x401550
mov edx, dword [ebp - 0xc]
add edx, 0x18
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x10b
je 0x4014e0
cmp dword [ebp - 0x10], 0x20b
je 0x401514
jmp 0x40154e
mov edx, dword [ebp - 4]
cmp dword [edx + 0x5c], 0xe
ja 0x4014ed
xor eax, eax
jmp 0x401550
mov eax, 8
imul ecx, eax, 0xe
mov edx, dword [ebp - 4]
cmp dword [edx + ecx + 0x60], 0
je 0x401508
mov dword [ebp - 0x14], 1
jmp 0x40150f
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
jmp 0x401550
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x6c], 0xe
ja 0x401527
xor eax, eax
jmp 0x401550
mov edx, 8
imul eax, edx, 0xe
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + eax + 0x70], 0
je 0x401542
mov dword [ebp - 0x1c], 1
jmp 0x401549
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
jmp 0x401550
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4019b0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 8]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 4], edx
jmp 0x4019f0
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
add ecx, 0x28
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
movzx eax, word [edx + 6]
cmp dword [ebp - 0xc], eax
jae 0x401a1f
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
cmp edx, dword [ecx + 0xc]
jb 0x401a1d
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 0xc], ecx
jae 0x401a1d
mov eax, dword [ebp - 4]
jmp 0x401a21
jmp 0x4019de
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x401a30
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x401a50
xor eax, eax
jmp 0x401a8b
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp dword [edx], 0x4550
je 0x401a6b
xor eax, eax
jmp 0x401a8b
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x10b
je 0x401a86
xor eax, eax
jmp 0x401a8b
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x401ed0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x403088], 0
jne 0x401ee3
jmp 0x401f3c
push 0x403070
call sub.kernel32.dll_EnterCriticalSection
mov eax, dword [0x40308c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401f32
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call sub.kernel32.dll_TlsGetValue
mov dword [ebp - 8], eax
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x401f27
cmp dword [ebp - 8], 0
je 0x401f27
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
call edx
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
jmp 0x401ef5
push 0x403070
call sub.kernel32.dll_LeaveCriticalSection
mov esp, ebp
pop ebp
ret
Function at 0x405590
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4055ae
or eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 4]
push 0x10
push edx
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4055ef
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x3e4d5168
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x4d6f7e4e
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
jmp 0x401219