joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5305c0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b8
mov eax, dword [0x6c6060]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x218], 0
push 0x1ff
push 0
lea eax, [ebp - 0x217]
push eax
call fcn.0058a530
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x530618
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str._s_line:_d__msg:_s_
lea ecx, [ebp - 0x218]
push ecx
call fcn.0058abce
add esp, 0x14
jmp 0x530634
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str._s_line:_d_
lea ecx, [ebp - 0x218]
push ecx
call fcn.0058abce
add esp, 0x10
mov byte [ebp - 0x318], 0
push 0xff
push 0
lea edx, [ebp - 0x317]
push edx
call fcn.0058a530
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0xe]
push ecx
movzx edx, word [ebp - 0x12]
push edx
movzx eax, word [ebp - 0x14]
push eax
push str.._Log_Debug__4d_02d_02d.txt
lea ecx, [ebp - 0x318]
push ecx
call fcn.0058abce
add esp, 0x14
cmp dword [0x6e6bf8], 0
jne 0x5307bc
push 0
lea edx, [ebp - 0x3b0]
push edx
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov dword [ebp - 0x328], eax
cmp dword [ebp - 0x328], 0xffffffff
jne 0x530715
mov ecx, dword [ebp - 0x328]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5b84fc
lea edx, [ebp - 0x318]
push edx
call fcn.0058ab70
add esp, 8
mov dword [ebp - 0x3b4], eax
cmp dword [ebp - 0x3b4], 0
je 0x530710
call fcn.0052f550
push eax
lea eax, [ebp - 0x218]
push eax
push str._stime:_s_n
mov ecx, dword [ebp - 0x3b4]
push ecx
call fcn.0058be11
add esp, 0x10
mov edx, dword [ebp - 0x3b4]
push edx
call fcn.0058a86f
add esp, 4
jmp 0x5307bc
lea eax, [ebp - 0x324]
push eax
mov ecx, dword [ebp - 0x328]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x31c], eax
mov edx, dword [ebp - 0x324]
shl edx, 0x10
or edx, dword [ebp - 0x31c]
mov dword [ebp - 0x320], edx
mov eax, dword [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x320], 0xf4240
ja 0x5307b2
push 0x5b84fc
lea ecx, [ebp - 0x318]
push ecx
call fcn.0058ab70
add esp, 8
mov dword [ebp - 0x3b8], eax
cmp dword [ebp - 0x3b8], 0
je 0x5307b0
call fcn.0052f550
push eax
lea edx, [ebp - 0x218]
push edx
push str._stime:_s_n
mov eax, dword [ebp - 0x3b8]
push eax
call fcn.0058be11
add esp, 0x10
mov ecx, dword [ebp - 0x3b8]
push ecx
call fcn.0058a86f
add esp, 4
jmp 0x5307bc
mov dword [0x6e6bf8], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058a6b9
mov esp, ebp
pop ebp
ret
Function at 0x551e20
Capabilities:
Print debug messages

Disassembly:
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov eax, dword [esi + 0x4c]
add eax, 0x493e0
cmp edi, eax
jbe 0x551e4d
mov ecx, esi
call fcn.00551de0
push 0x5bad48
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esi + 0x4c], edi
pop edi
pop esi
ret

Function at 0x556ad0
Capabilities:
Print debug messages

Disassembly:
mov ecx, dword [ecx + 0x1f2]
test ecx, ecx
jne 0x556adf
xor eax, eax
ret 8
jmp 0x55a780
mov edx, dword [esp + 4]
fld dword [edx]
sub esp, 8
fld qword [0x5aee40]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jnp 0x55a884
fldz
fcom dword [edx]
fnstsw ax
test ah, 0x41
je 0x55a882
fld dword [edx + 8]
fcomp st(2)
fnstsw ax
fstp st(1)
test ah, 1
je 0x55a884
fcomp dword [edx + 8]
fnstsw ax
test ah, 0x41
je 0x55a886
push esi
fnstcw word [esp + 0x10]
mov esi, dword [esp + 0x14]
fld dword [esi + 8]
fld qword [0x5ada38]
movzx eax, word [esp + 0x10]
fdiv st(1), st(0)
or eax, 0xc00
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fxch st(1)
fistp qword [esp + 4]
mov eax, dword [esp + 4]
push eax
fldcw word [esp + 0x14]
fld dword [esi]
fdiv st(1)
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp qword [esp + 8]
mov eax, dword [esp + 8]
push eax
fldcw word [esp + 0x18]
fld dword [edx + 8]
fdiv st(1)
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x1c], eax
fldcw word [esp + 0x1c]
fistp qword [esp + 0xc]
mov eax, dword [esp + 0xc]
push eax
fldcw word [esp + 0x1c]
fdivr dword [edx]
fnstcw word [esp + 0x1c]
movzx eax, word [esp + 0x1c]
or eax, 0xc00
mov dword [esp + 0x20], eax
fldcw word [esp + 0x20]
fistp qword [esp + 0x10]
mov edx, dword [esp + 0x10]
push edx
fldcw word [esp + 0x20]
call fcn.0055a130
pop esi
add esp, 8
ret 8
fstp st(0)
fstp st(0)
push str._____________________________.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
add esp, 8
ret 8

Function at 0x557fd0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x1f2], 0
push edi
je 0x55807f
mov edi, dword [esp + 0x14]
test edi, edi
je 0x55807f
push 0
push 1
push 0x702958
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 1
je 0x55807f
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov dword [0x702904], ecx
mov edx, dword [eax + 4]
mov dword [0x702908], edx
mov eax, dword [eax + 8]
mov dword [0x70290c], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov dword [0x7028f8], ecx
mov edx, dword [eax + 4]
mov dword [0x7028fc], edx
mov eax, dword [eax + 8]
mov edx, dword [esp + 0x18]
mov dword [0x702900], eax
mov ecx, dword [esi + 0x1f2]
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x557f40
push 0
push 0
mov dword [0x702954], ecx
mov dword [0x702950], edi
mov dword [0x6c4b84], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x558086
push eax
push 0x702958
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop edi
xor eax, eax
pop esi
ret 0x10
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
ret 0x10
Function at 0x55c230
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov ebx, ecx
push edi
lea edi, [ebx + 0xa0]
mov ecx, edi
call fcn.004103c0
mov ebp, 1
cmp dword [ebx + 0x88], ebp
jbe 0x55c3b3
fldz
fstp dword [esp + 0x20]
fld dword [esp + 0x3c]
fmul qword [0x5a9318]
fstp qword [esp + 0x14]
jmp 0x55c270
mov ecx, dword [ebx + 0x78]
mov edx, dword [ebx + 0x84]
xor eax, eax
test ecx, ecx
je 0x55c287
mov ecx, dword [ecx]
test ecx, ecx
je 0x55c287
mov eax, dword [ecx]
lea ecx, [edx + ebp]
test eax, eax
je 0x55c29a
mov eax, dword [eax]
test eax, eax
je 0x55c29a
mov eax, dword [eax]
test eax, eax
jne 0x55c29e
xor edx, edx
jmp 0x55c2a0
mov edx, dword [eax]
mov esi, dword [edx + 8]
mov eax, ecx
shr eax, 2
and ecx, 3
cmp esi, eax
ja 0x55c2b1
sub eax, esi
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax + ecx*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
test eax, eax
jns 0x55c2d3
fadd dword [0x5a8f58]
fmul dword [esp + 0x3c]
mov eax, dword [ebx + 0x78]
mov ecx, dword [ebx + 0x84]
xor edx, edx
fadd qword [esp + 0x14]
fstp dword [esp + 0x1c]
test eax, eax
je 0x55c2f6
mov eax, dword [eax]
test eax, eax
je 0x55c2f6
mov edx, dword [eax]
add ecx, ebp
test edx, edx
je 0x55c308
mov edx, dword [edx]
test edx, edx
je 0x55c308
mov edx, dword [edx]
test edx, edx
jne 0x55c30c
xor edx, edx
jmp 0x55c30e
mov edx, dword [edx]
mov esi, dword [edx + 8]
mov eax, ecx
shr eax, 2
and ecx, 3
cmp esi, eax
ja 0x55c31f
sub eax, esi
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax + ecx*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
test eax, eax
jns 0x55c341
fadd dword [0x5a8f58]
fmul dword [esp + 0x3c]
mov ecx, dword [edi + 0x10]
inc ecx
fadd qword [esp + 0x14]
fstp dword [esp + 0x24]
cmp dword [edi + 8], ecx
ja 0x55c35f
push 1
mov ecx, edi
call fcn.00410010
mov esi, dword [edi + 0xc]
add esi, dword [edi + 0x10]
mov eax, dword [edi + 8]
cmp eax, esi
ja 0x55c36e
sub esi, eax
mov edx, dword [edi + 4]
cmp dword [edx + esi*4], 0
jne 0x55c38b
push 0xc
call fcn.0058a5c0
add esp, 4
test eax, eax
je 0x55c3cb
mov ecx, dword [edi + 4]
mov dword [ecx + esi*4], eax
mov eax, dword [edi + 4]
mov ecx, dword [eax + esi*4]
lea edx, [esp + 0x1c]
push edx
push ecx
lea edx, [edi + 0x14]
push edx
call fcn.0053f190
inc dword [edi + 0x10]
inc ebp
add esp, 0xc
cmp ebp, dword [ebx + 0x88]
jb 0x55c270
mov esi, dword [esp + 0x38]
push edi
mov ecx, esi
call fcn.0055e310
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x14], 0
call fcn.0058b5d9
push 0x5d14b0
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x30], vtable.std::bad_alloc.0
call fcn.0058b19f
int3
Function at 0x55c400
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov ebx, ecx
push edi
lea edi, [ebx + 0xb8]
mov ecx, edi
call fcn.004103c0
xor ebp, ebp
cmp dword [ebx + 0x88], ebp
jbe 0x55c583
fldz
fstp dword [esp + 0x20]
fld dword [esp + 0x3c]
fmul qword [0x5a9318]
fstp qword [esp + 0x14]
jmp 0x55c440
mov ecx, dword [ebx + 0x78]
mov edx, dword [ebx + 0x84]
xor eax, eax
test ecx, ecx
je 0x55c457
mov ecx, dword [ecx]
test ecx, ecx
je 0x55c457
mov eax, dword [ecx]
lea ecx, [edx + ebp]
test eax, eax
je 0x55c46a
mov eax, dword [eax]
test eax, eax
je 0x55c46a
mov eax, dword [eax]
test eax, eax
jne 0x55c46e
xor edx, edx
jmp 0x55c470
mov edx, dword [eax]
mov esi, dword [edx + 8]
mov eax, ecx
shr eax, 2
and ecx, 3
cmp esi, eax
ja 0x55c481
sub eax, esi
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax + ecx*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
test eax, eax
jns 0x55c4a3
fadd dword [0x5a8f58]
fmul dword [esp + 0x3c]
mov eax, dword [ebx + 0x78]
mov ecx, dword [ebx + 0x84]
xor edx, edx
fadd qword [esp + 0x14]
fstp dword [esp + 0x1c]
test eax, eax
je 0x55c4c6
mov eax, dword [eax]
test eax, eax
je 0x55c4c6
mov edx, dword [eax]
add ecx, ebp
test edx, edx
je 0x55c4d8
mov edx, dword [edx]
test edx, edx
je 0x55c4d8
mov edx, dword [edx]
test edx, edx
jne 0x55c4dc
xor edx, edx
jmp 0x55c4de
mov edx, dword [edx]
mov esi, dword [edx + 8]
mov eax, ecx
shr eax, 2
and ecx, 3
cmp esi, eax
ja 0x55c4ef
sub eax, esi
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax + ecx*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
test eax, eax
jns 0x55c511
fadd dword [0x5a8f58]
fmul dword [esp + 0x3c]
mov ecx, dword [edi + 0x10]
inc ecx
fadd qword [esp + 0x14]
fstp dword [esp + 0x24]
cmp dword [edi + 8], ecx
ja 0x55c52f
push 1
mov ecx, edi
call fcn.00410010
mov esi, dword [edi + 0xc]
add esi, dword [edi + 0x10]
mov eax, dword [edi + 8]
cmp eax, esi
ja 0x55c53e
sub esi, eax
mov edx, dword [edi + 4]
cmp dword [edx + esi*4], 0
jne 0x55c55b
push 0xc
call fcn.0058a5c0
add esp, 4
test eax, eax
je 0x55c59b
mov ecx, dword [edi + 4]
mov dword [ecx + esi*4], eax
mov eax, dword [edi + 4]
mov ecx, dword [eax + esi*4]
lea edx, [esp + 0x1c]
push edx
push ecx
lea edx, [edi + 0x14]
push edx
call fcn.0053f190
inc dword [edi + 0x10]
inc ebp
add esp, 0xc
cmp ebp, dword [ebx + 0x88]
jb 0x55c440
mov esi, dword [esp + 0x38]
push edi
mov ecx, esi
call fcn.0055e310
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x14], 0
call fcn.0058b5d9
push 0x5d14b0
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x30], vtable.std::bad_alloc.0
call fcn.0058b19f
int3
Function at 0x56c310
Capabilities:
Set current directory

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, ecx
cmp esi, 0x12
jb 0x56c32e
push 0
push 0x72
push str.DirectoryManager.cpp
call fcn.0052f1d0
add esp, 0xc
cmp esi, dword [edi + 0x50]
je 0x56c346
cmp esi, 0x11
je 0x56c346
mov eax, dword [edi + esi*4 + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [edi + 0x50], esi
pop edi
pop esi
ret 4
Function at 0x583e20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74c
mov eax, dword [0x6c6060]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x74c], ecx
cmp dword [ebp + 8], 0
jne 0x583e46
xor eax, eax
jmp 0x5840ab
cmp dword [ebp + 0xc], 0
jne 0x583e53
xor eax, eax
jmp 0x5840ab
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x744], eax
mov ecx, dword [ebp + 8]
push ecx
push 1
push 1
lea edx, [ebp - 0x331]
push edx
call fcn.0058aeba
add esp, 0x10
mov eax, dword [ebp - 0x74c]
add eax, 0x10
mov dword [ebp - 4], eax
mov dword [ebp - 0x33c], 0
push 0x200
push 0
lea ecx, [ebp - 0x330]
push ecx
call fcn.0058a530
add esp, 0xc
lea edx, [ebp - 0x130]
push edx
push str._02X
mov eax, dword [ebp - 4]
push eax
call fcn.0058ca26
add esp, 0xc
test eax, eax
jle 0x583ef4
cmp dword [ebp - 0x33c], 0x200
jge 0x583ef4
mov ecx, dword [ebp - 0x33c]
mov dl, byte [ebp - 0x130]
mov byte [ebp + ecx - 0x330], dl
mov eax, dword [ebp - 0x33c]
add eax, 1
mov dword [ebp - 0x33c], eax
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
jmp 0x583e9f
push 0x100
lea edx, [ebp - 0x330]
push edx
lea eax, [ebp - 0x128]
push eax
call fcn.005828c0
add esp, 0xc
mov cl, byte [ebp + 0x14]
mov byte [ebp - 5], cl
mov dword [ebp - 0x338], 0
jmp 0x583f30
mov edx, dword [ebp - 0x338]
add edx, 0x10
mov dword [ebp - 0x338], edx
mov eax, dword [ebp - 0x338]
cmp eax, dword [ebp - 0x744]
jge 0x58402a
mov ecx, dword [ebp + 8]
push ecx
push 0x10
push 1
lea edx, [ebp - 0x740]
push edx
call fcn.0058aeba
add esp, 0x10
cmp eax, 0x10
je 0x583fa5
push 0
push str.Error__
push str.Header_Version_Error__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x400
push 0
lea eax, [ebp - 0x740]
push eax
call fcn.0058a530
add esp, 0xc
push 0x118
push 0
lea ecx, [ebp - 0x128]
push ecx
call fcn.0058a530
add esp, 0xc
xor eax, eax
jmp 0x5840ab
lea edx, [ebp - 0x740]
push edx
lea eax, [ebp - 0x740]
push eax
push 0
lea ecx, [ebp - 0x128]
push ecx
call fcn.00582bc0
add esp, 0x10
mov dword [ebp - 0x748], 0
jmp 0x583fdf
mov edx, dword [ebp - 0x748]
add edx, 1
mov dword [ebp - 0x748], edx
cmp dword [ebp - 0x748], 0x10
jge 0x584025
mov eax, dword [ebp - 0x338]
add eax, dword [ebp - 0x748]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x748]
mov dl, byte [ebp + edx - 0x740]
mov byte [ecx + eax], dl
movsx eax, byte [ebp - 5]
mov ecx, dword [ebp - 0x338]
add ecx, dword [ebp - 0x748]
mov edx, dword [ebp + 0xc]
movsx ecx, byte [edx + ecx]
add eax, ecx
mov byte [ebp - 5], al
jmp 0x583fd0
jmp 0x583f21
mov edx, dword [ebp + 8]
push edx
push 1
push 1
lea eax, [ebp - 0x129]
push eax
call fcn.0058aeba
add esp, 0x10
movsx ecx, byte [ebp - 0x331]
movsx edx, byte [ebp - 0x129]
cmp ecx, edx
jne 0x584062
movsx eax, byte [ebp - 0x331]
movsx ecx, byte [ebp - 5]
cmp eax, ecx
je 0x5840a6
push 0
push str.Error__
push str.Header_Version_Error__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x400
push 0
lea edx, [ebp - 0x740]
push edx
call fcn.0058a530
add esp, 0xc
push 0x118
push 0
lea eax, [ebp - 0x128]
push eax
call fcn.0058a530
add esp, 0xc
xor eax, eax
jmp 0x5840ab
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0058a6b9
mov esp, ebp
pop ebp
ret 0x10
Function at 0x58a6b9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6c6060]
jne 0x58a6c3
repz ret
jmp fcn.00592691

Function at 0x598843
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6c6060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00596878
and dword [ebp - 0x14], 0
cmp dword [0x705f3c], 0
mov dword [ebp - 0x18], eax
jne 0x5988f6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x59899e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x59899e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5bf1a4
push ebx
mov dword [0x705f3c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x705f40], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x705f44], eax
call edi
push eax
call esi
mov dword [0x705f4c], eax
test eax, eax
je 0x5988f6
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x705f48], eax
mov eax, dword [0x705f48]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x59894f
cmp dword [0x705f4c], ecx
je 0x59894f
push eax
call esi
push dword [0x705f4c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x59894f
test ebx, ebx
je 0x59894f
call edi
test eax, eax
je 0x598946
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x598946
test byte [ebp - 8], 1
jne 0x59894f
or dword [ebp + 0x10], 0x200000
jmp 0x598982
mov eax, dword [0x705f40]
cmp eax, dword [ebp - 0x18]
je 0x598982
push eax
call esi
test eax, eax
je 0x598982
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x598982
mov eax, dword [0x705f44]
cmp eax, dword [ebp - 0x18]
je 0x598982
push eax
call esi
test eax, eax
je 0x598982
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x705f3c]
call esi
test eax, eax
je 0x59899e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x5989a0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058a6b9
leave
ret
Function at 0x401050
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
jnp 0x401079
jp 0x401079
jns 0x4010e2
jns 0x4010e4
jns 0x4010e6
jns 0x4010e8
jns 0x4010ea
jns 0x4010ec
jns 0x4010ee
jns 0x4010f0
jns 0x4010f2
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x104]
rep stosd dword es:[edi], eax
push 1
lea eax, [ebp - 0x104]
adc eax, sym.imp.KERNEL32.dll_GetTempPathA
inc eax
inc eax
add byte [ebp - 0x10343], cl
mov ebp, 0xfffffefc
invalid
inc dword [ebx - 0x3fcc0037]
leave
push dword [ebx]
sal dl, 0xae

Function at 0x4013c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
or ebx, 0xffffffff
jnp 0x4013e4
jp 0x4013e4
jns 0x401455
jns 0x401457
jns 0x401459
jns 0x40145b
jns 0x40145d
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40147a
push edi
mov ecx, 0x4a
xor eax, eax
lea edi, [ebp - 0x128]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40146a
mov edi, dword [sym.imp.MSVCRT.dll__stricmp]
lea ecx, [ebp - 0x104]
push str.explorer.exe
push ecx
call edi
add esp, 8
test eax, eax
je 0x401464
lea edx, [ebp - 0x128]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40146a
lea eax, [ebp - 0x104]
push str.explorer.exe
push eax
pushal
inc eax
add byte [eax - 1], dl
xlatb
call edi
add esp, 8
test eax, eax
jne 0x40143e
mov ebx, dword [ebp - 0x120]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401490
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
call fcn.004013c0
mov dword [ebp - 4], eax
xor bl, bl
jnp 0x4014b8
jp 0x4014b8
jns 0x40152c
jns 0x40152e
jns 0x401530
jns 0x401523
push 0
push 2
add byte [edx + 2], ch
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x401535
push edi
mov ecx, 0x4a
xor eax, eax
lea edi, [ebp - 0x12c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x401525
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call edi
cmp eax, dword [ebp - 0x124]
jne 0x401510
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x114]
cmp ecx, eax
je 0x401523
lea edx, [ebp - 0x12c]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x401525
jmp 0x4014f9
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, bl
pop esi
ret
pop ebx
mov esp, ebp
pop ebp
ret
mov al, bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401d70
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [0x4062f0]
push esi
push edi
mov ecx, 0x43
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jnp 0x401da6
Function at 0x402220
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
push ebx
push esi
push edi
jnp 0x402248
jp 0x402248
jns 0x4022b3
jns 0x4022b5
jns 0x4022b7
jns 0x4022b9
jns 0x4022bb
jns 0x4022bd
jns 0x4022bf
jns 0x4022c1
lea eax, [ebp - 0x1a0]
push eax
push 0x202
mov edx, dword [eax]
add byte [eax], al
add byte [edi], cl
mov cl, byte [edx]
add byte [eax], al
add byte [ecx + 0x79], bh
jns 0x40233a
jns 0x40233c
jns 0x40233e
jns 0x402340
jns 0x4022c8
adc eax, sym.imp.KERNEL32.dll_GetCurrentProcessId
and byte [ebp - 0x74e48b40], al
adc eax, 0x4062f0
sal byte [ebx + ebx - 0x75], 0x15
invalid
sbb ecx, dword [ebx + 0x4062f015]
add byte [edx - 0x18], dl
jmp 0x40235d
invalid

Function at 0x402380
Capabilities:
Act as tcp client
Connect tcp socket
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], esi
jnp 0x40239f
add byte [eax], al
add byte [edi], cl
mov al, byte [edi]
add byte [eax], al
add byte [ecx + 0x79], bh
jp 0x40239f
jns 0x402413
jns 0x402415
jns 0x402417
jns 0x402408
push 0x40a500
call 0x4018f0
mov edi, 0x40a500
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
mov ebx, dword [sym.imp.WS2_32.dll_inet_addr]
not ecx
dec ecx
je 0x4023f0
add byte [ebp + 0x47e80040], ah
cmc
invalid
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0xbb8
push 0x406500
push 0x406300
push str.www.hao123.com
push 0x40a500
call ebx
push eax
call fcn.00402220
add esp, 0x18
mov esi, eax
jnp 0x40240b
jp 0x40240b
jns 0x402477
jns 0x402479
jns 0x40247b
jns 0x40247d
jns 0x40247f
jns 0x402481
jns 0x402483
jns 0x40238f
cmp esi, 1
inc byte [ecx]
je 0x40244c
mov edi, 0x40a510
inc eax
add byte [ebx - 0x3fcc0037], al
or ecx, 0xffffffff
xor eax, eax
push dword [ebx]
sal dl, 0xae
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40244c
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
push ecx
push 0xbb8
push 0x406500
push 0x406300
push str.www.hao123.com
push 0x40a510
call ebx
push eax
call fcn.00402220
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
adc eax, dword [eax]
add byte [eax], al
jp 0x402489
mov cl, byte [0x79000000]
add byte [eax], al
add byte [ecx + 0x79], bh
jns 0x4024f7
jns 0x4024f8
jns 0x4024f9
jns 0x4024fa
jns 0x4024fb
jns 0x4024fc
jns 0x4024fd
jns 0x4024fe
jns 0x4024ff
jns 0x402500
jns 0x402501
jns 0x402502
jns 0x402472
call sub.MFC42.DLL_AfxGetModuleState
out 0x11, al
add byte [eax], al
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x20]
call fcn.00403290
jnp 0x4024b9
jp 0x4024b9
jns 0x402520
jns 0x402522
jns 0x402524
jns 0x402526
jns 0x402528
jns 0x40252a
jns 0x40252c
jns 0x40252e
jns 0x402530
jns 0x402532
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
jns 0x402561
cld
pushal
inc eax
add bh, bh
adc eax, sym.imp.WS2_32.dll_inet_addr
in al, 0x42
inc edx
inc eax
add byte [ebx - 0x17c10], cl
or al, byte [eax]
add byte [eax], al
add al, 0
pushal
inc eax
add bh, bh
adc eax, sym.imp.WS2_32.dll_gethostbyname