joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4038c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4077d8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x40b018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x403a52
cmp byte [ebx + 0x49], 0
je 0x403a52
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x403a46
lea esi, [ebp - 0x2c]
call fcn.004034a0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x403933
lea edx, [ebp - 0x2c]
mov eax, edx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, edx
push ecx
mov ecx, dword [ebx + 0x44]
push eax
lea eax, [ebx + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x40396b
dec eax
je 0x40396f
sub eax, 2
lea esi, [ebp - 0x2c]
je 0x403a4d
call fcn.00402810
xor al, al
jmp 0x403a54
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x40397f
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x4039ad
cmp edi, 0x10
jae 0x40398e
lea eax, [ebp - 0x2c]
mov edx, dword [ebx + 0x54]
push edx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x403a3e
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x403a4a
test esi, esi
jne 0x403927
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x403a6f
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x403a6f
cmp edi, esi
jae 0x403a27
push ecx
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.00403cf0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x403927
mov ecx, eax
cmp edi, 0x10
jae 0x403a03
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x403a1e
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x403921
test esi, esi
jne 0x4039f9
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x403a36
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x403921
lea esi, [ebp - 0x2c]
call fcn.00402810
xor al, al
jmp 0x403a54
lea esi, [ebp - 0x2c]
call fcn.00402810
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406bba
mov esp, ebp
pop ebp
ret
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3
Function at 0x404060
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x40b018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ecx, 0xa
mov esi, str.crashpad_handler.exe
lea edi, [ebp - 0x25c]
rep movsd dword es:[edi], dword [esi]
push 0x228
xor ebx, ebx
lea eax, [ebp - 0x22c]
push ebx
push eax
movsw word es:[edi], word [esi]
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
push 2
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x230]
mov esi, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x4040e2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406bba
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x4040f0
lea ecx, [ebp - 0x20c]
lea eax, [ebp - 0x25c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404126
test dx, dx
je 0x404122
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404126
add eax, 4
add ecx, 4
test dx, dx
jne 0x404100
xor eax, eax
jmp 0x40412b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40413f
lea edx, [ebp - 0x230]
push edx
push esi
call edi
test eax, eax
jne 0x4040f0
jmp 0x404145
mov ebx, dword [ebp - 0x228]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00406bba
mov esp, ebp
pop ebp
ret

Function at 0x404160
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x40b018]
xor eax, ebp
mov dword [ebp - 4], eax
xor ecx, ecx
mov eax, ecx
shr eax, 1
test cl, 1
je 0x404183
xor eax, 0xedb88320
test al, 1
je 0x404190
shr eax, 1
xor eax, 0xedb88320
jmp 0x404192
shr eax, 1
test al, 1
je 0x40419f
shr eax, 1
xor eax, 0xedb88320
jmp 0x4041a1
shr eax, 1
test al, 1
je 0x4041ae
shr eax, 1
xor eax, 0xedb88320
jmp 0x4041b0
shr eax, 1
test al, 1
je 0x4041bd
shr eax, 1
xor eax, 0xedb88320
jmp 0x4041bf
shr eax, 1
test al, 1
je 0x4041cc
shr eax, 1
xor eax, 0xedb88320
jmp 0x4041ce
shr eax, 1
test al, 1
je 0x4041db
shr eax, 1
xor eax, 0xedb88320
jmp 0x4041dd
shr eax, 1
test al, 1
je 0x4041ea
shr eax, 1
xor eax, 0xedb88320
jmp 0x4041ec
shr eax, 1
mov dword [ebp + ecx*4 - 0x404], eax
inc ecx
cmp ecx, 0x100
jb 0x404175
xor ecx, ecx
test edx, edx
je 0x40422c
push edi
jmp 0x404210
movzx edi, byte [ecx + esi]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [ebp + edi*4 - 0x404]
inc ecx
cmp ecx, edx
jne 0x404210
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406bba
mov esp, ebp
pop ebp
ret
Function at 0x404240
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x40b018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [str.QQ.exe]
mov edx, dword [0x408558]
mov ecx, dword [0x408554]
push ebx
push esi
mov dword [ebp - 0x238], edx
mov edx, dword [0x408564]
mov dword [ebp - 0x240], eax
mov ax, word [0x40855c]
mov dword [ebp - 0x23c], ecx
mov ecx, dword [str.TIM.exe]
push 0x228
mov dword [ebp - 0x24c], edx
xor ebx, ebx
mov word [ebp - 0x234], ax
mov eax, dword [0x408568]
mov dword [ebp - 0x250], ecx
mov ecx, dword [0x40856c]
lea edx, [ebp - 0x22c]
push ebx
push edx
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
push 2
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x40430b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406bba
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x404320
lea ecx, [ebp - 0x20c]
lea eax, [ebp - 0x240]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404356
test dx, dx
je 0x404352
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404356
add eax, 4
add ecx, 4
test dx, dx
jne 0x404330
xor eax, eax
jmp 0x40435b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4043b3
lea ecx, [ebp - 0x20c]
lea eax, [ebp - 0x250]
jmp 0x404370
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404396
test dx, dx
je 0x404392
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404396
add eax, 4
add ecx, 4
test dx, dx
jne 0x404370
xor eax, eax
jmp 0x40439b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4043b3
lea ecx, [ebp - 0x230]
push ecx
push esi
call edi
test eax, eax
jne 0x404320
jmp 0x4043b9
mov ebx, dword [ebp - 0x228]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00406bba
mov esp, ebp
pop ebp
ret
Function at 0x4043e0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x40b018]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
push edi
push eax
push 4
xor edi, edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], 0x1c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
jne 0x404442
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406bba
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Thread32Next]
lea esp, [esp]
mov ecx, dword [ebp + 8]
cmp dword [ebp - 0x14], ecx
je 0x404465
lea edx, [ebp - 0x20]
push edx
push esi
call ebx
test eax, eax
jne 0x404450
jmp 0x404468
mov edi, dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop ebx
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00406bba
mov esp, ebp
pop ebp
ret

Function at 0x404490
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
cmp eax, ecx
je 0x4044c6
mov edx, 0x320033
movzx esi, word [eax + 0x14]
mov edi, dword [eax + 0x18]
cmp dword [edi + esi - 0xc], edx
je 0x4044ce
mov eax, dword [eax]
cmp eax, ecx
jne 0x4044b3
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405600
Capabilities:
Terminate process

Disassembly:
push esi
push 0
push str.5B3838F5_0C81_46D9_A4C0_6EA28CA3E942
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x405622
call fcn.00404060
test eax, eax
jne 0x405648
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00404240
mov esi, eax
test esi, esi
je 0x40564d
push esi
call fcn.004043e0
add esp, 4
test eax, eax
je 0x40564d
push eax
push esi
call fcn.004044f0
add esp, 8
xor eax, eax
pop esi
ret
call fcn.00405160
xor eax, eax
pop esi
ret
Function at 0x406bba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40b018]
jne 0x406bc4
repz ret
jmp fcn.00406fd7
Function at 0x1004c83
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.01002df0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1004ce9
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x10062b8]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x1004ced
xor eax, eax
jmp 0x1004cfa
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x495901
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor eax, eax
cmp eax, dword [ebp + 0x10]
jge 0x495941
mov cl, byte [ebp + 0x14]
xor byte [edx + eax], cl
mov cl, byte [edx + eax]
and cl, 0xf
xor ebx, ebx
mov bl, byte [edx + eax]
sar ebx, 4
and bl, 0xf
xor bl, cl
shl ebx, 4
or cl, bl
mov byte [edx + eax], cl
mov ecx, esi
add cl, al
xor byte [edx + eax], cl
inc eax
cmp eax, dword [ebp + 0x10]
jl 0x495913
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x495947
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor eax, eax
cmp eax, dword [ebp + 0x10]
jge 0x495984
mov ecx, esi
add cl, al
xor byte [edx + eax], cl
mov cl, byte [edx + eax]
and cl, 0xf
xor ebx, ebx
mov bl, byte [edx + eax]
sar ebx, 4
and bl, 0xf
xor bl, cl
shl ebx, 4
or cl, bl
xor cl, byte [ebp + 0x14]
mov byte [edx + eax], cl
inc eax
cmp eax, dword [ebp + 0x10]
jl 0x495959
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x411913da
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x432060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
je 0x4320d2
nop
nop
nop
nop
mov ebx, 0x42f314
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x68fe07f7
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x56406ed6
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x42e1d0
mov ecx, 0x69f85aff
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x300010c4
Capabilities:
Terminate process

Disassembly:
call 0x300ff000
jmp 0x300011ab
push 0x58
push 0x300012c8
call fcn.300012f0
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x30002040
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x300015e4
xor esi, esi
inc esi
mov eax, dword [0x3000203c]
cmp eax, esi
je 0x30001602
mov eax, dword [0x3000203c]
test eax, eax
jne 0x3000157c
mov dword [0x3000203c], esi
push 0x300012c0
push 0x300012b8
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
jne 0x3000168f
mov eax, dword [0x3000203c]
cmp eax, esi
jne 0x30001257
push 0x300012b4
push 0x300012ac
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x3000203c], 2
test ebx, ebx
jne 0x30001263
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x3000204c], 0
jne 0x3000160f
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
jbe 0x30001528
cmp al, 0x22
je 0x30001518
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
jne 0x30001633
inc esi
jmp 0x30001280
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
jmp 0x30001295
test al, al
je 0x30001536
cmp dword [ebp - 0x1c], 0
jne 0x3000128d
mov al, byte [esi]
test al, al
je 0x30001546
cmp al, 0x20
ja 0x30001546
inc esi
mov dword [ebp - 0x20], esi
jmp 0x30001536
test byte [ebp - 0x3c], 1
jne 0x30001576
push 0xa
pop eax
push eax
push esi
push 0
push 0x30000000
call fcn.30001587
mov dword [0x30002024], eax
cmp dword [0x30002018], 0
jne 0x3000166b
push eax
call dword [sym.imp.MSVCR80.dll_exit]
movzx eax, word [ebp - 0x38]
jmp 0x3000154f
mov dword [0x30002050], esi
jmp 0x30001233
cmp eax, esi
jne 0x300015f2
xor esi, esi
inc esi
mov ebx, esi
jmp 0x300011fa
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x300011e5
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x30001233
push 0x3000204c
call fcn.30001973
pop ecx
test eax, eax
je 0x30001270
push 0
push 2
push 0
call dword [0x3000204c]
jmp 0x30001270
inc esi
mov dword [ebp - 0x20], esi
jmp 0x300012a8
cmp dword [0x30002050], 0
jne 0x3000167a
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x30002024]
jmp 0x3000169b
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.30001504
ret
Function at 0x402da8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402e01
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402c44
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402c44
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402deb
inc ebx
jmp 0x402dd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402e08
lea eax, [ebp - 8]
call fcn.0040483c
ret

Function at 0x402e10
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040483c
test esi, esi
jne 0x402e47
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.0040492c
jmp 0x402e68
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402c44
mov dword [esp], eax
test esi, esi
je 0x402e68
cmp dword [ebx], 0
je 0x402e68
dec esi
jmp 0x402e4f
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403970
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x434020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403a08
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4039e8
xor eax, eax
push ebp
push 0x4039e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403a24
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4039e8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x434020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x434020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404614
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x435044], 0
je 0x404675
cmp word [0x435218], 0xd7b2
jne 0x40463d
cmp dword [0x435220], 0
jbe 0x40463d
mov eax, 0x435214
call dword [0x435230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x43406c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40469c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x43402c], 0
jne 0x404691
push 0
push 0x434064
push 0x43406c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4047f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004029e4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x435045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4047b8
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4063e4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40644a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404aac
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403534
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406434
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406451
lea eax, [ebp - 0x10]
call fcn.0040483c
ret

Function at 0x408514
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x408545
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x40854c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x40857d
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x408664
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404cd8
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x40868a
test byte [ebp - 0xc], 0x10
jne 0x40868e
xor eax, eax
jmp 0x408690
mov al, 1
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

Function at 0x40869c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404cd8
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x4086c4
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404cd8
push eax
mov eax, dword [ebp - 4]
call fcn.00404cd8
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x408d44
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp - 4]
call fcn.00404cd8
push eax
call sub.kernel32.dll_CreateDirectoryA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret