joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002a245
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1002a28f
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1002a236
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1002a245
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1042fee8
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1002a296
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1001110c
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1002a335
add edi, 4
add eax, 2
dec ecx
jne 0x1002a27b
call 0x1002a2e2
loope 0x1002a2d8
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1002a332
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1002a343
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1002a2f6
cmp eax, ecx
ja 0x1002a2f6
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1002a380
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1002a376
lea edi, [ebp - 0x100]
push pe_nt_image_headers32
push edi
push esi
call fcn.100115eb
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

Function at 0x40ac1a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x40ac29
pop dword [ebp - 0x18]
mov eax, 0x7e0dda17
add eax, 0x8232d212
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x5026ad67
add dword [ebp - 0x28], 0xfe2b97e4
mov dword [ebp - 0x24], 0xa8c6890f
sub dword [ebp - 0x24], 0x76933cca
mov dword [ebp - 0x20], 0x9bfdc7af
add dword [ebp - 0x20], 0xb04e7c7f
mov dword [ebp - 0x1c], 0x324a73e7
sub dword [ebp - 0x1c], 0x324a73e7
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xf4f1d028
add dword [ebp - 0x28], 0x7f80992e
mov dword [ebp - 0x24], 0xdd9b7d31
add dword [ebp - 0x24], 0x63d0e444
mov dword [ebp - 0x20], 0xfaad85ec
add dword [ebp - 0x20], 0x68c1e680
mov dword [ebp - 0x1c], 0x77ab417f
add dword [ebp - 0x1c], 0x8854be81
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x385854df
sub eax, 0x38178497
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x38f90
push 0
call eax
mov ecx, 0x1fd675a9
sub ecx, 0x1fd630fa
xor edi, edi
add edi, eax
mov edx, 0x4dee65e9
add edx, 0xb2534a17
add edx, dword [ebp - 0x18]
mov esi, 0x7138161d
add esi, 0x45b4a0da
add dword [ebp - 0x10], ecx
mov ebx, dword [edx]
xor dword [ebp - 8], edi
sub ebx, esi
sub dword [ebp - 0xc], 0x8cad817
mov dword [edi], ebx
sub dword [ebp - 0xc], ebx
add edi, 0xdb5220ea
sub edi, 0xdb5220e6
add edx, 4
loop 0x40ad48
add eax, 0x8578cabd
add eax, 0x7a883ad2
mov ebx, eax
add eax, 5
mov ecx, 0x403bb946
sub ecx, 0x3ffbb946
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x40915c
nop
mov ecx, 0x4c134ae
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x2ce3b32
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x419760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x419782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419778
mov eax, 1
add ebx, ebx
jne 0x41979b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419790
jne 0x4197ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419790
xor ecx, ecx
sub eax, 3
jb 0x4197c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419832
mov ebp, eax
add ebx, ebx
jne 0x4197cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4197d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4197fc
inc ecx
add ebx, ebx
jne 0x4197e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4197dd
jne 0x4197f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4197dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41981c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41980d
jmp 0x41977e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41981c
add edi, ecx
jmp 0x41977e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41983a
cmp byte [edi], 5
jne 0x41983a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41983f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4198b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41986c
mov ecx, edi
jns 0x41989b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19090]
or eax, eax
je 0x4198b1
mov dword [ebx], eax
add ebx, 4
jmp 0x419889
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4198eb
sub esp, 0xffffff80
jmp 0x404c20

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 0x10022f4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x100231a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
jmp 0x1002373
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push 1
call ebx
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x1002348
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100235e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, 0x94
lea esi, [ebp - 0x250]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push dword [ebp + 0xc]
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test esi, esi
pop esi
sete al
pop ebx
pop edi
leave
ret 8

Function at 0x1002b53
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
push 0x14
push 0x1001348
call fcn.0100227c
or dword [ebp - 0x1c], 0xffffffff
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
cmp dword [ebp + 0x10], edi
je 0x1002bcc
push edi
push 4
call fcn.01003722
mov dword [0x10055e4], eax
cmp eax, edi
je 0x1002c1b
mov esi, 0x1005198
mov dword [ebp - 0x24], esi
mov eax, dword [esi]
cmp eax, edi
je 0x1002ba1
push dword [esi + 4]
push eax
call fcn.01002b2e
add esi, 8
jmp 0x1002b8a
push 0x20a
mov esi, 0x10056a0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1002c1b
push 0x1001338
push esi
call fcn.01002448
push eax
call dword [sym.imp.msvcrt.dll__mbscpy]
pop ecx
pop ecx
jmp 0x1002bd1
mov esi, 0x10056a0
cmp dword [0x10055f0], edi
je 0x1002bec
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x1002bfb
mov ecx, dword [0x10055d8]
mov dword [eax], ecx
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x1002c14
mov eax, dword [eax]
mov dword [0x10055d8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x10055dc], eax
mov dword [ebp - 0x20], 1
or dword [ebp - 4], 0xffffffff
call fcn.01002c31
mov eax, dword [ebp - 0x20]
call fcn.010022b5
ret 0xc
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0xcf5000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0xcf500a
jmp 0xcf700f
jmp fcn.00a4d058
Function at 0x401000
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x244
mov eax, dword [0x415048]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_LoadStringW]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
push 0x416de0
push 0x67
push esi
call ebx
push 0x64
mov edi, 0x416d18
push edi
push 0x6d
push esi
call ebx
push 0x6b
xor ebx, ebx
push esi
mov dword [esp + 0x18], 0x30
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], 0x4011d7
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], esi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x6c
push dword [esp + 0x28]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 6
mov dword [esp + 0x3c], 0x6d
mov dword [esp + 0x40], edi
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push ebx
push esi
push ebx
push ebx
push ebx
mov eax, connect
push eax
push ebx
push eax
push 0xcf0000
push 0x416de0
push edi
push ebx
mov dword [0x416ea8], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x4010f3
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004045e8
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call edi
call fcn.00402700
call fcn.00401e31
test eax, eax
je 0x401123
call fcn.00402f50
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00401248
test eax, eax
je 0x4010da
call fcn.004013ab
mov eax, dword [0x417748]
cmp eax, ebx
jbe 0x40115b
cmp word [0x41774c], bx
jbe 0x40115b
push eax
mov esi, 0x415f1c
call fcn.00403700
mov ax, word [0x41774c]
pop ecx
mov word [0x415f2c], ax
xor eax, eax
movzx ecx, word [eax + 0x413254]
mov word [eax + 0x417c80], cx
add eax, 2
cmp cx, bx
jne 0x40115d
call fcn.00403770
xor eax, eax
push 0x206
mov word [esp + 0x44], ax
lea eax, [esp + 0x46]
push ebx
push eax
call fcn.00407f40
add esp, 0xc
lea eax, [esp + 0x40]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x417c80
lea eax, [esp + 0x44]
push esi
push eax
call fcn.004045f7
add esp, 0xc
push 0x1f4
call edi
push 1
push ebx
push 0x41326c
lea eax, [esp + 0x4c]
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40111c
Function at 0x401248
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1dc
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x3e
mov word [ebp - 0x48], ax
xor ebx, ebx
lea eax, [ebp - 0x46]
push ebx
push eax
call fcn.00407f40
add esp, 0xc
lea edi, [ebp - 0x48]
call fcn.00403200
xor eax, eax
movzx ecx, word [ebp + eax - 0x48]
mov word [eax + 0x416eb0], cx
add eax, 2
cmp cx, bx
jne 0x40127f
mov esi, 0x416eb0
push esi
push ebx
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
cmp eax, ebx
je 0x4012b7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40139c
push esi
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x4012b0
lea eax, [ebp - 0x1d8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x417880
call fcn.00401b33
pop ecx
mov esi, 0x4132ac
test eax, eax
jne 0x401373
movzx ecx, word [eax + 0x413270]
mov word [eax + 0x417a28], cx
add eax, 2
cmp cx, bx
jne 0x4012ef
push 0x413280
push 0x40
push 0x417884
call fcn.0040466c
add esp, 0xc
push 0x4132a0
push 0x10
push 0x417906
call fcn.0040466c
add esp, 0xc
push esi
push 0x40
push 0x417926
call fcn.0040466c
add esp, 0xc
push 0x51
pop eax
mov word [0x417904], ax
mov eax, 0x2b8e
mov word [0x4179a6], ax
xor eax, eax
movzx ecx, word [eax + 0x4132cc]
mov word [eax + 0x417a08], cx
add eax, 2
cmp cx, bx
jne 0x401353
mov dword [0x417a48], 5
call fcn.004032a0
push esi
call fcn.00403350
pop ecx
mov dword [0x417748], eax
call fcn.004017d2
push ebx
push ebx
push ebx
push 0x401609
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004045e8
leave
ret
Function at 0x4018f1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x206
xor edi, edi
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push edi
push eax
mov dword [ebp - 0x418], edi
call fcn.00407f40
xor eax, eax
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.00407f40
add esp, 0x18
push 0x104
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
mov word [ebp - 0x410], ax
push 0x413390
lea eax, [ebp - 0x414]
push eax
mov ebx, 0x4133d4
lea eax, [ebp - 0x20c]
push ebx
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, 0xffffffff
je 0x4019a2
mov dword [ebp - 0x418], 1
push 0x4133e0
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, 0xffffffff
je 0x4019d0
or dword [ebp - 0x418], 2
push 0x413428
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, 0xffffffff
je 0x4019fe
or dword [ebp - 0x418], 4
push 0x413478
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, 0xffffffff
je 0x401a2f
or dword [ebp - 0x418], 0x100
push 0x4134d0
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, 0xffffffff
je 0x401a60
or dword [ebp - 0x418], 0x200
push 0x413528
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call edi
pop edi
pop esi
pop ebx
cmp eax, 0xffffffff
je 0x401a94
or dword [ebp - 0x418], 0x400
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
xor ecx, ebp
or eax, 0x2000000
call fcn.004045e8
leave
ret
Function at 0x401bc3
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 0x214], esi
cmp ebx, esi
je 0x401cd4
cmp edi, esi
je 0x401cd4
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x401bf4
sub eax, edx
sar eax, 1
je 0x401cd4
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.00407f40
add esp, 0xc
cmp dword [ebp + 8], esi
jne 0x401c5f
cmp dword [0x415f10], 3
jne 0x401c5f
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4135e8
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004045f7
add esp, 0xc
jmp 0x401c72
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004045f7
and dword [ebp - 0x210], 0
push 0x4135ec
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00404919
add esp, 0x18
cmp dword [ebp - 0x210], 0
je 0x401cd4
push dword [ebp - 0x210]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.00404baa
push dword [ebp - 0x210]
call fcn.00404c34
add esp, 0x14
mov dword [ebp - 0x214], esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
xor ecx, ebp
pop esi
call fcn.004045e8
leave
ret

Function at 0x401d77
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
xor esi, esi
call fcn.00407f40
and dword [ebp - 0x210], esi
add esp, 0xc
test edi, edi
je 0x401e21
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x4135cc
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004045f7
push 0x41360c
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00404919
xor esi, esi
add esp, 0x18
inc esi
cmp dword [ebp - 0x210], 0
je 0x401e21
push dword [ebp - 0x210]
push esi
push 0x200
push edi
call fcn.00404dff
push dword [ebp - 0x210]
call fcn.00404c34
add esp, 0x14
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004045e8
leave
ret
Function at 0x4025bf
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
xor esi, esi
lea eax, [ebp - 0x20e]
push esi
push eax
call fcn.00407f40
add esp, 0xc
push 0x200
lea eax, [ebp - 0x410]
push esi
push eax
call fcn.00407f40
lea eax, [ebp - 0x410]
add esp, 0xc
push eax
call fcn.00401ce7
pop ecx
test eax, eax
je 0x4026eb
xor eax, eax
movzx ecx, word [eax + 0x4132ac]
mov word [eax + 0x417578], cx
add eax, 2
cmp cx, si
jne 0x40261f
xor eax, eax
movzx ecx, word [ebp + eax - 0x38a]
mov word [eax + 0x417470], cx
add eax, 2
cmp cx, si
jne 0x402637
xor eax, eax
movzx ecx, word [ebp + eax - 0x40c]
mov word [eax + 0x4174f0], cx
add eax, 2
cmp cx, si
jne 0x402650
cmp dword [0x415f10], 3
mov ax, word [ebp - 0x38c]
mov word [0x417570], ax
mov ax, word [ebp - 0x2ea]
mov word [0x4175f8], ax
mov dword [0x4175fc], 5
lea eax, [ebp - 0x210]
mov esi, 0x104
je 0x4026a9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x4026c6
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4136e0
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004045f7
add esp, 0xc
push 0x4135f4
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004045f7
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004045e8
leave
ret

Function at 0x402700
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
mov dword [0x415f10], 0
call fcn.00407f40
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4027b7
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jne 0x402781
mov eax, dword [ebp - 0x118]
cmp eax, 2
jae 0x402769
cmp eax, 1
jne 0x4027b7
mov dword [0x415f10], 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004045e8
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x4027b7
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x4027a8
mov dword [0x415f10], 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004045e8
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x4027b7
mov dword [0x415f10], 5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004045e8
mov esp, ebp
pop ebp
ret
Function at 0x403e10
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
xor eax, eax
push ebx
push esi
mov dword [ebp - 4], eax
cmp dword [ecx], eax
je 0x403e8c
cmp edi, eax
jle 0x403e36
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax + ecx]
not dl
mov byte [eax + ecx], dl
inc eax
cmp eax, edi
jl 0x403e26
lea ebx, [edi + 7]
push ebx
call fcn.004056ae
mov esi, eax
lea eax, [edi + 5]
mov word [esi], ax
mov ecx, dword [0x415f14]
mov eax, dword [ebp + 0xc]
mov dword [esi + 2], ecx
mov dl, byte [0x415f18]
push edi
push eax
lea ecx, [esi + 7]
push ecx
mov byte [esi + 6], dl
call fcn.00408ab0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
add esp, 0x10
push 0
push ebx
push esi
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x403e8f
cmp eax, ebx
jne 0x403e8f
mov dword [ebp - 4], 1
jmp 0x403e8f
mov esi, dword [ebp + 8]
test esi, esi
je 0x403e9c
push esi
call fcn.00405a87
add esp, 4
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret