joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402d80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov edi, edx
mov esi, ecx
call fcn.00408600
add esp, 0xc
cmp dword [0x418f08], 3
lea eax, [ebp - 0x20c]
jne 0x402ded
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x416c5c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00404bbb
add esp, 0xc
jmp 0x402df9
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x416c60
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
call fcn.00404a1a
mov esp, ebp
pop ebp
ret

Function at 0x402ee0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
cmp esi, 0xffffffff
je 0x402ffd
push 0x400
call fcn.00405a27
add esp, 4
mov ebx, eax
push 0x400
push 0
push ebx
call fcn.00408600
add esp, 0xc
mov ecx, esi
call fcn.004030b0
xor ecx, ecx
shld ecx, eax, 9
xorps xmm0, xmm0
shl eax, 9
movq qword [ebp - 0x18], xmm0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
push 0x400
push ebx
movq qword [ebp - 0x10], xmm0
push esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402ff4
cmp dword [ebx + 4], 0x5042475f
jne 0x402fbb
lea ecx, [ebx + 0x10e]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402f80
sub ecx, edx
sar ecx, 1
je 0x402fbb
mov ecx, 0x8d
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
movsw word es:[edi], word [esi]
call fcn.00405ab9
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404a1a
mov esp, ebp
pop ebp
ret
push ebx
push 2
mov edx, 0x1e
mov ecx, esi
call fcn.00403190
add esp, 8
test eax, eax
je 0x402ff4
cmp dword [ebx + 4], 0x5042475f
jne 0x402ff4
lea ecx, [ebx + 0x10e]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402fe3
sub ecx, edx
sar ecx, 1
jne 0x402f91
push ebx
call fcn.00405ab9
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00404a1a
mov esp, ebp
pop ebp
ret
Function at 0x4033e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push 0x416ce8
push ecx
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], 0
call fcn.00404db2
add esp, 0xc
test eax, eax
je 0x403425
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404a1a
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 2
push 0
push dword [ebp - 8]
call fcn.00405b80
push dword [ebp - 8]
call fcn.00405f58
push 0
push 0
push dword [ebp - 8]
mov esi, eax
call fcn.00405b80
lea eax, [edi + esi]
push eax
mov dword [ebp - 0x10], eax
call fcn.00405a27
push dword [ebp - 8]
mov ebx, eax
push 1
push esi
push ebx
mov dword [ebp - 0x14], ebx
call fcn.00405084
push dword [ebp - 8]
call fcn.0040519c
push edi
add ebx, esi
push 0
push ebx
call fcn.00408600
mov eax, edi
cdq
and edx, 3
add esp, 0x40
lea edi, [edx + eax]
sar edi, 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00405fe3
add esp, 4
xor esi, esi
test edi, edi
jle 0x4034ad
lea ecx, [ecx]
call fcn.00405fc0
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jl 0x4034a0
push 0x416cf0
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.00404db2
add esp, 0xc
test eax, eax
je 0x4034d8
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404a1a
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
mov esi, dword [ebp - 0x14]
push 1
push dword [ebp - 0x10]
push esi
call fcn.0040536a
push dword [ebp - 8]
call fcn.0040519c
add esp, 0x14
test esi, esi
je 0x403501
push esi
call fcn.00405ab9
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
pop ebx
xor ecx, ebp
mov eax, 1
pop edi
call fcn.00404a1a
mov esp, ebp
pop ebp
ret
Function at 0x4046c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe24
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x400
lea eax, [ebp - 0x610]
push 0
push eax
mov dword [ebp - 0xe20], edx
mov ebx, ecx
call fcn.00408600
add esp, 0xc
lea eax, [ebp - 0x610]
push ebx
push 0x1ff
push eax
call fcn.00404b5f
mov ecx, ebx
add esp, 0xc
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404710
sub ecx, edx
sar ecx, 1
lea edi, [ebp - 0x60e]
mov esi, 0x41a920
lea edi, [edi + ecx*2]
mov ecx, 0x80
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x404737
sub ebx, ecx
sar ebx, 1
push 0x10000
lea ebx, [ebx*2 + 0x202]
call fcn.00405a27
add esp, 4
mov esi, eax
push 0x10000
push 0
push esi
call fcn.00408600
add esp, 0xc
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0xe10], ax
lea eax, [ebp - 0xe0e]
push eax
mov dword [ebp - 0xe1c], 0x10000
call fcn.00408600
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
xor edi, edi
push eax
mov dword [ebp - 0xe18], 0
mov dword [ebp - 0xe14], edi
call fcn.00408600
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xe20]
lea eax, [ebp - 0xe10]
push eax
lea eax, [ebp - 0xe18]
push eax
call fcn.00404000
add esp, 8
test eax, eax
je 0x4048be
lea eax, [ebp - 0xe10]
push eax
push ebx
lea eax, [ebp - 0x610]
mov ebx, 0xbba
push eax
mov edx, ebx
lea ecx, [ebp - 0xe18]
call fcn.00404120
add esp, 0xc
test eax, eax
je 0x4048be
lea eax, [ebp - 0xe10]
push eax
lea eax, [ebp - 0xe1c]
push eax
push esi
lea edx, [ebp - 0xe14]
lea ecx, [ebp - 0xe18]
call fcn.00404320
add esp, 0xc
test eax, eax
je 0x4048be
cmp word [ebp - 0xe14], bx
jne 0x4048be
cmp dword [ebp - 0xe1c], edi
je 0x4048be
cmp byte [esi], 0
jne 0x4048be
push 0x41a1a0
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00404bbb
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x416da0
push eax
lea eax, [ebp - 0xe14]
push eax
mov dword [ebp - 0xe14], edi
call fcn.00404db2
add esp, 0xc
cmp dword [ebp - 0xe14], edi
je 0x4048b9
lea edx, [ebp - 0xe14]
lea ecx, [ebp - 0xe18]
call fcn.004048f0
mov edi, 1
test esi, esi
je 0x4048cb
push esi
call fcn.00405ab9
add esp, 4
mov eax, dword [ebp - 0xe18]
test eax, eax
je 0x4048dc
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404a1a
mov esp, ebp
pop ebp
ret
Function at 0x4018d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.___do_sjlj_init
Function at 0x401120
Capabilities:
Create thread
Get common file path
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x409008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x40114b
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004041b4
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x310]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
push str.gtJxsj.dll
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x24
lea eax, [ebp - 0x108]
push 0
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push esi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40124a
cmp esi, 0xffffffff
je 0x401243
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4011e0
push ebx
push 4
push 0x3000
sub ecx, edx
push ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
lea ecx, [ebp - 0x108]
mov ebx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401206
push 0
sub ecx, edx
lea eax, [ebp - 0x108]
push ecx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0
push ebx
push dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
pop ebx
test eax, eax
je 0x401243
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.004041b4
mov esp, ebp
pop ebp
ret
Function at 0x401540
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x409008]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push edi
push 0
push 0x401c90
movups xmmword [esp + 0x18], xmm0
movups xmmword [esp + 0x28], xmm0
movq qword [esp + 0x38], xmm0
call dword [sym.imp.USER32.dll_EnumWindows]
push 0xf
mov dword [esp + 0x38], str.GtJxsjPlguin2
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], 0x401690
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push 0x7f00
push 0
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x14], 3
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x4015f1
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.004041b4
mov esp, ebp
pop ebp
ret 0x10
push 0
push esi
push 0
push 0
push 0xfa
push 0xc8
push 0
push 0
push 0x10cf0000
push str.GtJxsjPlguin2
push dword [esp + 0x5c]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push dword [ebp + 0x14]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ebx, dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [esp + 0x38]
push 0
push 0
push 0
push eax
call ebx
test eax, eax
je 0x401671
mov esi, dword [sym.imp.USER32.dll_DispatchMessageA]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x38]
push eax
call esi
lea eax, [esp + 0x38]
push eax
call edi
push 0
push 0
push 0
lea eax, [esp + 0x44]
push eax
call ebx
test eax, eax
jne 0x401652
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x40]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004041b4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4037d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405238
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x409008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4038f0
cmp byte [ebx + 0x3d], 0
je 0x4038f0
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x403829
xor al, al
jmp 0x4038f2
sub esp, 8
lea ecx, [ebp - 0x28]
call fcn.00402600
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
lea edi, [ebx + 0x40]
cmp esi, 0x10
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
add eax, edx
push eax
push ecx
mov ecx, dword [ebx + 0x38]
push edi
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x40387d
sub eax, 1
je 0x403881
mov esi, dword [ebp - 0x14]
sub eax, 2
je 0x4038d9
xor bl, bl
jmp 0x4038db
mov byte [ebx + 0x3d], 0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp esi, 0x10
mov edi, dword [ebp - 0x2c]
cmovae eax, ecx
sub edi, eax
je 0x4038b7
push dword [ebx + 0x4c]
cmp esi, 0x10
lea eax, [ebp - 0x28]
push edi
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov esi, dword [ebp - 0x14]
add esp, 0x10
cmp edi, eax
jne 0x403879
cmp byte [ebx + 0x3d], 0
je 0x4038d9
test edi, edi
lea edi, [ebx + 0x40]
jne 0x403841
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.004034a0
jmp 0x40383b
mov bl, 1
cmp esi, 0x10
jb 0x4038ec
lea ecx, [esi + 1]
push ecx
push dword [ebp - 0x28]
call fcn.00403a30
mov al, bl
jmp 0x4038f2
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004041b4
mov esp, ebp
pop ebp
ret
Function at 0x403860
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0xa8410268]
mov ecx, dword [0xb440f510]
in eax, dx
push esi
cmp eax, ecx
push edi
jge 0x2b403a7a
mov esi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [esi]
dec esp
pop esi
or al, 0x3b
pop edx
mov dword [esi + 0x10], ebx
inc ebx
sahf
and al, 8
add byte [eax], al
mov dword [esi + 0x820], ebx
mov esi, ebx
sub byte [edi - 0x49770000], bl
adc al, 0x74
xchg ecx, eax
sbb ebp, eax
cmp byte [eax + eax], dl
add byte [eax], ch
jnp 0xd5dd84bc
jnp 0x403904
push ebx
push ecx
push esi
call 0x9b0a4f60
mov edx, dword [esi]
mov eax, dword [0x9f17fc]
push edx
push ebx
mov ebp, dword [edx + 0x647e8d10]
push 1
stosb byte es:[edi], al
push edi
call 0x7765f0
fcmovb st(0), st(3)
je 0x4038e3
push eax
push 0x8740e80b
call fcn.00401e40
adc dword [esi - 0x61], 0xffffff8b
push eax
push 0xffffffffffffffaf
mov edx, dword [eax + 0x6a]
scasd eax, dword es:[edi]
push 8
lodsd eax, dword [esi]
call 0x4121b0
cmp eax, ebx
je 0x403901
push eax
push 0xc10a28
call 0xffd01e40
insb byte es:[edi], dx
les ecx, [eax]
mov eax, dword [0x747f02ee]
jg 0x40397a
cmp eax, ebx
je 0x40395b
push eax
mov eax, dword [edi]
pop es
push 0x42
push eax
call fcn.00408db0
cmp eax, ebx
je 0x40392e
cmp eax, 0x12e87
je 0x40392e
push eax
in eax, dx
jae 0x40390c
lahf
add al, ch
je 0x40392b
invalid
add esp, 8
mov ecx, dword [0x41029d]
mov edx, dword [edi]
push ecx
push 0xd90080
push edx
call fcn.00408d73
adc al, 0xc3
adc eax, 0x11142df
sub byte [esi + ecx + 0x50], dh
push 0x4061fc
call 0xf3f6b40
inc esi
les edx, [ebx + 0x16a0e8]
add byte [ebx + 0x5e400b97], ah
call 0x405000
mov dword [0x5e400b97], eax
mov dword [ebx], esi
movsb byte es:[edi], byte [esi]
or eax, dword [ecx]
mov edx, dword [edi]
mov dword [esi + 0x830], eax
add eax, 0xad410ba4
mov dword [esi + 0x87e], eax
jle 0x403984
add byte [eax], al
mov ecx, dword [0x704117fc]
push ecx
push edx
call 0xa8406840
mov ebx, eax
test ebx, ebx
je 0x403a5d
cmp ebx, 0x975f1
je 0x403a85
cmp ebx, 0xb23b4
sar dword [ebp - 0x75], cl
adc eax, 0x4117f8
or edi, dword [ebx]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], 1
push ecx
inc edx
mov esp, esp
clc
call fcn.004061e7
mov eax, dword [edi]
push eax
call fcn.004067e8
mov edi, dword [0x41acc4]
movsb byte es:[edi], byte [esi]
mov eax, 0x47004102
sbb al, 0xc8
inc eax
cmp ecx, 0xa
sbb eax, 0x4102c497
test al, 0xa3
mov eax, 0x7eb94102
and ecx, dword [ebx + 0x40c0c815]
add byte [eax - 0x50], ch
rol byte [eax + 0x2c], cl
add edx, 0x40
push edx
call dword [sym.imp.MSVCRT.dll_printf]
push ebx
push str.apr_socket_connect__
call fcn.00402440
add ah, 0x10
push esi
mov dword [esi + 8], 0
call fcn.00403860
add ah, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 8], 2
mov edx, dword [0x4102a8]
inc edx
push esi
mov dword [0xdd4102a8], edx
call fcn.00401ea0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
push 0xffffffffffffff90
pop ss
nop
Function at 0x4067e8
Capabilities:
Get socket status

Disassembly:
out dx, eax
add dword [ecx + 0xe8b1444], edi
mov edx, dword [ecx + 0x14]
mov dword [edx], ebx
mov eax, dword [esi]
mov dword [eax + 0x34], 1
mov ecx, dword [esi]
add ecx, 0x48
push ecx
call fcn.00406010
pop edi
mov eax, 0x54c3025b
nop
nop
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x4066e0
push esi
mov eax, dword [esi]
push eax
call 0xc405640
pop ds
call 0xff8d6be0
add dword [esi - 0x3da2a1fc], 4
add byte [eax - 0x6f6f6f70], dl
push edi
nop
nop
nop
cmp dl, byte [eax - 0x4daa6f70]
in al, dx
sub esp, 0x210
push ebx
dec edi
pop ebp
or byte [esi + 0x57], dl
mov ebp, ebp
add al, 0xaf
clc
dec dword [edi]
test byte [ecx + eax + 0x1a], ch
add byte [ebx + 0x60f32943], cl
je 0x4069ef
push cs
jne 0x406875
mov ecx, dword [esi + 0x14]
lea edx, [esi + 0x28]
push ecx
push edx
push eax
aaa
adc eax, sym.imp.WSOCK32.dll_connect
cmp eax, 0xffffffff
invalid
rol dword [eax], 0x83
clc
dec dword [edi]
div dword [edi]
add dword [eax], eax
add byte [ebx + 0x40c1d835], cl
add bh, bh
mov al, byte [0x840f5d85]
mov byte [eax], 0
add bh, bh
salc
add eax, 0xa70afc80
cmp eax, 0xb23b3
jne 0x4069f4
mov edi, dword [ebx - 8]
mov esi, dword [ebx + 0x24]
mov eax, edi
or eax, esi
jne 0x4068bd
ja 0x4068ec
mov eax, 0xb23b4
pop ebx
mov ebp, dword [ebp + ebx*2 - 0x3e]
or byte [eax], al
mov eax, dword [ebx + 4]
mov ecx, 0x853001
test dword [ecx + ecx*4], esp
inc eax
hlt
add byte [eax + 0x40], ch
inc edx
lldt word [esi + 0x57]
cmp dword fs:[ecx + eax*2], ecx
adc al, 0xb0
push 0xf4240
push esi
push edi
mov dword [ebp - 8], eax
call 0xf4b750
loopne 0x406951
cld
lea eax, [ebp - 8]
fisttp qword [ebp - 0xdb0c]
push eax
lea edx, [ebp - 0x241]
push ecx
push edx
push 0
push 0x41
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffff92
mov dword [ebp - 0x5c], eax
je 0x40697e
test eax, eax
jne 0x406943
pop edi
pop esi
mov eax, 0xb231d
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0x18b]
push eax
push ecx
call fcn.0040b960
add byte [eax], al
mov eax, dword [0x8b5e74c0]
dec ebx
ljmp 0x845
mov esi, dword [0x8fc1d8]
jmp dword [eax - 0x7b]
mov eax, 0xd675ef
pop edi
pop esi
aaa
xor dword [ebp + 0x5d], eax
ret 8

Function at 0x408db0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
or al, 0x8b
xchg edi, eax
push ecx
mov eax, dword [ebp + 0x10]
xor ecx, ecx
push esi
pop ebp
setne cl
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0x75]
cmp ecx, 0x73
push esi
jg 0x409003
je 0x408fdb
dec ecx
cmp ecx, 0xf
packssdw mm0, qword [eax]
add eax, dword [eax]
add byte [ebx], dh
sar byte [ebp + 0x40911091], cl
add bh, bh
and al, 0x78
clc
nop
inc eax
add byte [ebx - 0x2dcc3e35], cl
mov ecx, dword [esi + 0x38]
loope 0x408dfa
cmp cl, 2
pop ss
add dl, byte [edi]
xchg esp, eax
sbb bh, byte [ebx]
ret 0x2f74
salc
ret
add dword [ebx + 0x3c90ac99], edi
popal
Function at 0x404866
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x40d014]
xor eax, ebp
mov dword [ebp - 8], eax
and dword [ebp - 0x260], 0
lea eax, [ebp - 0x25c]
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x268], ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x264], eax
cmp eax, 0xffffffff
jne 0x4048c1
push edi
push 0xbc
push 0x2ee1
call fcn.0040b1de
push eax
call fcn.0040a4d2
xor eax, eax
jmp 0x404989
mov ebx, dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
push 0x5c
push edi
call ebx
pop ecx
mov esi, eax
pop ecx
push 0x2f
test esi, esi
je 0x40499a
push esi
call ebx
pop ecx
pop ecx
test eax, eax
je 0x4048e5
mov esi, eax
add esi, 2
mov eax, esi
mov ecx, 0x104
sub eax, edi
sar eax, 1
sub ecx, eax
mov dword [ebp - 0x26c], ecx
lea eax, [ebp - 0x230]
push eax
push ecx
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x404958
push edi
push 0x2f58
call fcn.0040b1de
push eax
call fcn.0040b56c
mov ebx, dword [ebp - 0x268]
mov edx, edi
pop ecx
pop ecx
mov ecx, ebx
call fcn.00402ce4
mov ecx, eax
test ecx, ecx
je 0x4049b0
mov eax, dword [ebx + 4]
push dword [eax + 0x38]
push edi
push ecx
push 0x2ee1
call fcn.0040b1de
push eax
call fcn.0040a494
mov ebx, dword [ebp - 0x260]
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, dword [ebp - 0x26c]
test eax, eax
jne 0x4048fb
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004093e3
leave
ret 4
push edi
call ebx
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4048e5
mov esi, edi
jmp 0x4048e8
mov ebx, dword [ebp - 0x260]
inc ebx
mov dword [ebp - 0x260], ebx
jmp 0x40495e
Function at 0x4049bf
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa2c
mov eax, dword [0x40d014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xa28], edx
mov ebx, ecx
mov dword [ebp - 0xa24], edi
mov esi, edi
call fcn.0040a621
mov eax, dword [ebx + 4]
xor ecx, ecx
cmp dword [eax + 0x30], ecx
jle 0x404b8b
cmp edi, dword [eax + 0x34]
jne 0x404b23
cmp dword [eax + 0x30], 1
jg 0x404b7e
mov eax, dword [eax + 0x2c]
push dword [eax + edi*4]
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x820]
mov ecx, 0x100
push ecx
push eax
push ecx
lea eax, [ebp - 0x620]
push eax
push ecx
lea eax, [ebp - 0xa20]
push eax
push 3
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
lea ecx, [ebp - 0x218]
add esp, 0x24
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0xa24]
jne 0x404a64
sub ecx, edx
mov eax, 0x108
sar ecx, 1
sub eax, ecx
push 0x4014f4
push eax
lea eax, [ebp + ecx*2 - 0x220]
push eax
call fcn.004021c9
pop ecx
pop ecx
lea edx, [ebp - 0x218]
mov ecx, ebx
call fcn.00404866
add esi, eax
lea eax, [ebp - 0x420]
push 0x104
push eax
push 0x401504
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x404b7e
cmp word [ebp + eax*2 - 0x420], 0x5c
je 0x404ae6
push 0x401524
lea eax, [ebp - 0x420]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x420]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x4014f4
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
pop ecx
pop ecx
lea edx, [ebp - 0x420]
jmp 0x404b75
mov eax, dword [eax + 0x2c]
push dword [eax + edi*4]
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404b6e
test al, 0x10
je 0x404b6e
push 0x401528
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
push ecx
lea edx, [ebp - 0x218]
mov ecx, ebx
call fcn.00404866
add esi, eax
mov eax, dword [ebx + 4]
inc edi
cmp edi, dword [eax + 0x30]
jl 0x4049fa
mov eax, dword [ebp - 0xa28]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [eax], esi
xor eax, eax
pop esi
pop ebx
call fcn.004093e3
leave
ret