joyce8/EMBER2024-capa huggingface dataset:
Function at 0x629208
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov esi, ecx
mov ecx, 0xa70c2c
call fcn.004b2dd8
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jbe 0x62922d
cmp dword [eax + 4], 0
je 0x62922d
add eax, 8
jmp 0x629294
mov ecx, 0xa70c2c
call fcn.004b2dd8
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x629281
mov edi, eax
test eax, eax
jne 0x62926f
push 0xc
pop ecx
call fcn.0043cb28
mov dword [eax], 0xa70c2c
and dword [eax + 4], 0
mov ecx, 0xa70c2c
mov edi, eax
call fcn.004b2dd8
push edi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
test esi, esi
je 0x629285
mov ecx, dword [esi]
and dword [esi], 0
test ecx, ecx
je 0x629287
mov ecx, dword [esi + 4]
jmp 0x629287
xor eax, eax
jmp 0x629294
xor ecx, ecx
mov dword [edi + 4], 1
lea eax, [edi + 8]
mov dword [edi + 8], ecx
pop esi
pop edi
ret

Function at 0x629297
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push edi
push esi
mov esi, ecx
mov ecx, 0xa70c0c
call fcn.004b2dd8
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jbe 0x6292c2
cmp dword [eax + 4], 0
mov ebx, eax
je 0x6292c2
add ebx, 8
jmp 0x629342
mov ecx, 0xa70c0c
call fcn.004b2dd8
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x629316
mov edi, eax
test eax, eax
jne 0x629304
push 0xc
pop ecx
call fcn.0043cb28
mov dword [eax], 0xa70c0c
and dword [eax + 4], 0
mov ecx, 0xa70c0c
mov edi, eax
call fcn.004b2dd8
push edi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
test esi, esi
je 0x629321
mov eax, dword [esi]
and dword [esi], 0
test eax, eax
je 0x62931a
mov eax, dword [esi + 4]
jmp 0x62932d
xor ebx, ebx
jmp 0x629342
xor ecx, ecx
call fcn.00626963
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
xor eax, eax
mov ecx, dword [edi + 4]
mov dword [edi + 4], 1
lea ebx, [edi + 8]
mov dword [edi + 8], eax
call fcn.00626963
mov eax, ebx
pop esi
pop edi
pop ebx
ret
Function at 0x629348
Capabilities:
Hide graphical window

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, edx
mov edx, dword [esp + 0x14]
mov eax, ecx
shr eax, 7
and eax, 0x40
or eax, ecx
mov ebx, edx
shr ebx, 7
and ebx, 0x40
or ebx, edx
xor eax, ebx
je 0x6294e5
test dl, 0x10
mov edi, eax
je 0x62938f
xor eax, eax
bt ecx, 0x15
setae al
xor eax, 5
push eax
push esi
call dword [sym.imp.user32.dll_ShowWindow]
mov edx, dword [esp + 0x14]
mov eax, edi
test al, 0xc0
je 0x6293d7
test bl, 0x40
jne 0x6293a6
mov eax, edx
shr al, 7
movzx eax, al
lea eax, [eax + eax*2 - 2]
jmp 0x6293b1
test dl, dl
js 0x6294ea
xor eax, eax
dec eax
push 0x4013
push 0
push 0
push 0
push 0
push eax
push esi
call dword [sym.imp.user32.dll_SetWindowPos]
push 0
push 0
push esi
call dword [sym.imp.user32.dll_InvalidateRgn]
mov edx, dword [esp + 0x14]
mov eax, edi
mov ebp, ebx
mov ebx, eax
or ebx, edx
bt ebx, 0xb
jae 0x6293fe
bt edx, 0xb
push 9
pop eax
push 3
pop ecx
cmovae ecx, eax
push ecx
push esi
call dword [sym.imp.user32.dll_ShowWindow]
mov edx, dword [esp + 0x14]
mov eax, edi
bt eax, 0x11
jb 0x629409
xor eax, eax
inc eax
jmp 0x62942d
xor eax, eax
bt edx, 0x11
setae al
lea eax, [eax + eax*2 + 6]
push eax
push esi
call dword [sym.imp.user32.dll_ShowWindow]
mov edx, dword [esp + 0x14]
mov eax, edi
and eax, 0xfffdffff
mov ebx, eax
or ebx, edx
test bl, 8
je 0x62945a
mov edi, edx
not edi
shr edi, 2
and edi, 2
push 0
push esi
mov ebx, eax
call dword [sym.imp.user32.dll_GetSystemMenu]
push edi
push 0xf060
push eax
call dword [sym.imp.user32.dll_EnableMenuItem]
mov edx, dword [esp + 0x14]
mov eax, ebx
test dl, 0x10
jne 0x62946c
push 0
push esi
mov ebx, eax
call dword [sym.imp.user32.dll_ShowWindow]
mov eax, ebx
test eax, eax
je 0x6294e5
mov ecx, 0xa70be0
call fcn.00625819
push 0
push 1
push eax
push esi
call sub.user32.dll_SendMessageW
mov ecx, dword [esp + 0x14]
bt ecx, 0x11
jb 0x6294ae
mov ecx, ebp
call fcn.006294ff
mov ebx, dword [sym.imp.user32.dll_SetWindowLongW]
mov edi, edx
push eax
push 0xfffffffffffffff0
push esi
call ebx
push edi
push 0xffffffffffffffec
push esi
call ebx
mov ecx, dword [esp + 0x14]
xor eax, eax
test cx, 0x6000
sete al
shl eax, 4
or eax, 0x27
push eax
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.user32.dll_SetWindowPos]
mov ecx, 0xa70be0
call fcn.00625819
push 0
push 0
push eax
push esi
call sub.user32.dll_SendMessageW
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x28
pop edx
mov ecx, str.internal_error:_entered_unreachable_codecannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_8ede3aae28fe6e4d52b38157d7bfe0d3bceef225library_std_src_threadlocal.rs
push 0xa39aec
call fcn.0063cd70
pop eax
ud2
Function at 0x6294ff
Capabilities:
Inspect section memory permissions

Disassembly:
push ebx
push edi
push esi
mov eax, ecx
mov esi, ecx
mov edi, ecx
mov ebx, ecx
mov edx, ecx
and eax, 4
and esi, 2
and edi, 0x10
shl ebx, 0xc
and edx, 1
shl eax, 0xe
shl esi, 0x10
shl edi, 0x18
and ebx, 0x20000000
shl edx, 0x12
or esi, eax
mov eax, ecx
or edi, esi
mov esi, ecx
shl eax, 0xd
shl esi, 0x14
and esi, 0x40000000
or esi, edi
mov edi, ecx
shl edi, 0x13
and edi, 0x80000000
or edi, esi
mov esi, eax
and eax, 0x200000
or ebx, edi
and esi, 0x1000000
mov edi, ecx
or esi, ebx
shr edi, 3
or esi, edx
mov edx, ecx
and edi, 8
and edx, 0x20
or eax, edi
or esi, 0x6c80000
mov edi, 0x110
shl edx, 0xd
or eax, edx
bt ecx, 0x12
mov edx, 0x80130
cmovae edx, edi
or edx, eax
mov eax, esi
and eax, 0xff30ffff
test cx, 0x6000
cmove eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x6299a6
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov esi, ecx
mov ecx, 0xa70c1c
call fcn.004b2dd8
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jbe 0x6299cb
cmp dword [eax + 4], 0
je 0x6299cb
add eax, 8
jmp 0x629a32
mov ecx, 0xa70c1c
call fcn.004b2dd8
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x629a1f
mov edi, eax
test eax, eax
jne 0x629a0d
push 0xc
pop ecx
call fcn.0043cb28
mov dword [eax], 0xa70c1c
and dword [eax + 4], 0
mov ecx, 0xa70c1c
mov edi, eax
call fcn.004b2dd8
push edi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
test esi, esi
je 0x629a23
mov ecx, dword [esi]
and dword [esi], 0
test ecx, ecx
je 0x629a25
mov ecx, dword [esi + 4]
jmp 0x629a25
xor eax, eax
jmp 0x629a32
xor ecx, ecx
mov dword [edi + 4], 1
lea eax, [edi + 8]
mov dword [edi + 8], ecx
pop esi
pop edi
ret

Function at 0x629a35
Capabilities:
Log keystrokes

Disassembly:
push edi
push esi
sub esp, 0x38
mov esi, ecx
push 0
push 0x12
call dword [sym.imp.user32.dll_MapVirtualKeyW]
xor edx, edx
mov ecx, esp
mov di, 0xa4
inc edx
mov dword [ecx], edx
mov word [ecx + 4], di
mov word [ecx + 6], ax
mov dword [ecx + 8], edx
and dword [ecx + 0xc], 0
and dword [ecx + 0x10], 0
mov dword [ecx + 0x1c], edx
mov word [ecx + 0x20], di
mov word [ecx + 0x22], ax
mov dword [ecx + 0x24], 3
and dword [ecx + 0x28], 0
and dword [ecx + 0x2c], 0
push 0x1c
push ecx
push 2
call dword [sym.imp.user32.dll_SendInput]
push esi
call dword [sym.imp.user32.dll_SetForegroundWindow]
add esp, 0x38
pop esi
pop edi
ret
Function at 0x62da00
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
xor ecx, ecx
push ebx
xor bl, bl
push ebp
mov ebp, dword [esp + 0xc]
test edx, edx
je 0x62daba
mov eax, dword [esp + 0x10]
push esi
mov esi, ebp
sub esi, eax
cmp edx, 0x20
jb 0x62da9f
push edi
mov edi, edx
xorps xmm3, xmm3
and edi, 0xffffffe0
xorps xmm2, xmm2
add eax, 0x10
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x20]
movups xmm1, xmmword [ecx + ebp]
add ecx, 0x20
pxor xmm1, xmm0
por xmm3, xmm1
movups xmm1, xmmword [esi + eax - 0x20]
movups xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
por xmm2, xmm1
cmp ecx, edi
jb 0x62da33
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd ebx, xmm2
pop edi
cmp ecx, edx
jae 0x62dab3
mov eax, dword [esp + 0x14]
add eax, ecx
sub edx, ecx
mov cl, byte [esi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or bl, cl
sub edx, 1
jne 0x62daa3
pop esi
pop ebp
movzx eax, bl
pop ebx
ret
pop ebp
movzx eax, bl
pop ebx
ret
Function at 0x62e280
Capabilities:
Encrypt data using curve25519

Disassembly:
mov ecx, dword [esp + 4]
mov al, byte [ecx + 0x1f]
and byte [ecx], 0xf8
and al, 0x3f
or al, 0x40
mov byte [ecx + 0x1f], al
ret
Function at 0x637b20
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
or esi, 0xffffffff
test ebx, ebx
je 0x637b67
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
sub ebp, edi
nop dword [eax]
mov eax, dword [edi + ebp]
lea edi, [edi + 4]
xor eax, dword [edi - 4]
mov ecx, esi
not ecx
lea edx, [eax - 1]
not eax
shr edx, 0x1f
shr eax, 0x1f
and edx, eax
neg edx
or edx, ecx
and esi, edx
sub ebx, 1
jne 0x637b40
pop edi
pop ebp
mov eax, esi
pop esi
pop ebx
ret

Function at 0x6380e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push ebp
xorps xmm0, xmm0
mov dword [esp + 8], 0
movlpd qword [esp + 0x14], xmm0
mov eax, 1
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0x40
mov edi, eax
xor ebx, ebx
and edi, 1
neg edi
adc ebx, ebx
and edi, dword [esp + 0x28]
neg ebx
mov ecx, edi
and edi, dword [esp + 0x14]
xor ecx, eax
mov esi, ebx
and esi, dword [esp + 0x2c]
mov eax, esi
and esi, dword [esp + 0x10]
xor eax, dword [esp + 0x10]
shrd ecx, eax, 1
shr eax, 1
add ecx, edi
mov dword [esp + 0x14], ecx
adc eax, esi
and ebx, 0x80000000
shrd ebp, edx, 1
mov dword [esp + 0x10], eax
xor eax, eax
shr edx, 1
add ebp, eax
mov eax, ecx
adc edx, ebx
sub dword [esp + 0x18], 1
jne 0x638111
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x63b23b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
je 0x63b27a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x63b27a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x63b27a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x63b27a
cmp dword [ecx + 0x74], 0xe
jbe 0x63b27a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x642bc0
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push edi
push esi
sub esp, 0x20
cmp dword [ecx + 4], 0
mov esi, ecx
je 0x642c3a
lea ebx, [esi + 0xc]
mov dword [esp + 4], 0
lea eax, [esp + 4]
push 0
push eax
push 0
push ebx
call dword [sym.imp.kernel32.dll_InitOnceBeginInitialize]
cmp eax, 1
mov dword [esp], eax
jne 0x642c75
cmp dword [esp + 4], 0
je 0x642c5c
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x642c98
mov edi, eax
inc eax
mov dword [esi], eax
mov eax, dword [0xa70db0]
nop word cs:[eax + eax]
nop
mov dword [esi + 8], eax
lock cmpxchg dword [0xa70db0], esi
jne 0x642c20
push 0
push 0
push ebx
call dword [sym.imp.kernel32.dll_InitOnceComplete]
jmp 0x642c6c
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esp], eax
je 0x642cdb
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [esi], ecx
jne 0x642c60
mov edi, dword [esp]
jmp 0x642c6c
mov edi, dword [esi]
jmp 0x642c6b
mov edi, eax
push dword [esp]
call dword [sym.imp.kernel32.dll_TlsFree]
dec edi
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
ret
mov dword [esp + 8], 0
lea eax, [esp + 8]
mov ecx, esp
mov edx, 0xa0c9a8
push 0xa0c9dc
push eax
call fcn.00642d10
add esp, 8
ud2
push 0
push 4
push ebx
call dword [sym.imp.kernel32.dll_InitOnceComplete]
lea ecx, [esp + 8]
mov edx, 0xa0ca08
mov dword [esp + 8], 0xa0ca00
mov dword [esp + 0xc], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], str.dest_is_out_of_bounds
mov dword [esp + 0x14], 0
call fcn.0063cbf0
ud2
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0xa0ca00
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], str.dest_is_out_of_bounds
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.00642d70
ud2

Function at 0x6431e0
Capabilities:
Resolve dns

Disassembly:
push ebx
push edi
push esi
sub esp, 0x34
mov esi, ecx
lea ecx, [esp + 4]
push dword [esp + 0x44]
call fcn.0043ad60
add esp, 4
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x643220
mov eax, dword [0xa0b948]
mov edx, dword [0xa0b94c]
cmp dword [esp + 8], 0
mov dword [esi + 8], edx
mov dword [esi + 4], eax
mov dword [esi], 1
jne 0x64328f
jmp 0x643299
mov edi, dword [esp + 8]
mov ebx, dword [esp + 0xc]
xorps xmm0, xmm0
mov eax, esp
mov dword [esp], 0
lea ecx, [esp + 0x14]
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 0x24], xmm0
mov dword [esp + 0x1c], 1
push eax
push ecx
push 0
push edi
call dword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x643270
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov eax, 1
jmp 0x643284
mov ecx, dword [esp]
movzx eax, word [esp + 0x48]
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov word [esi + 0xc], ax
xor eax, eax
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
je 0x643299
mov ecx, edi
mov edx, 1
call fcn.00404240
add esp, 0x34
pop esi
pop edi
pop ebx
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x40124f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push edi
push 0x7f00
xor edi, edi
push edi
mov dword [ebp - 0x24], str.construct
mov dword [ebp - 0x44], 0x401000
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x4c], 0x30
call esi
push 0x7f00
push edi
mov dword [ebp - 0x34], eax
call esi
push 0x7f00
push edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov esi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
call esi
push edi
mov dword [0x403100], eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x40136e
push 1
push dword [0x403100]
call dword [sym.imp.USER32.dll_LoadBitmapA]
push edi
push edi
call esi
push eax
push edi
push edi
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.displayed
push str.construct
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push eax
mov dword [0x403108], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x403108]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x40136e
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x401351
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402ac5
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40010c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x423fb0]
or al, 8
xor ebx, ebx
push eax
push ebx
div dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpeneyExA]
cmp eax, ebx
jge 0x402b59
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402b16
sub dword [ebp + 0x10], ebx
jne 0x402b4d
lea eax, [ebp - 0x10c]
push ebx
sar bh, 1
jne 0x402b09
call fcn.00402ac5
test eax, eax
jne 0x402b18
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402afd
hlt
push dword [ebp - 4]
call dword [0x40705c]
push 2
call fcn.00405c20
cmp eax, ebx
je 0x402b40
push ebx
push dword [0x427fb0]
std
jg 0x402b84
add ch, bh
jne 0x402b52
push dword [ebp + 8]
call eax
jmp 0x402b59
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegClnseOeyRegDeleteValueA]
xor eax, eax
inc eax
sbb al, 0x70
inc eax
add byte [ebx], dh
rol byte [eax + 0x5f], 0x5e
pop edi
pop esi
pop ebx
leave
ret 0xc
aas
inc edx
add byte [0x80000001], al
Function at 0x402ee7
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402f04
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402f13
mov ebx, 0x40f0c0
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402f28
mov ecx, dword [0x423f58]
add ecx, eax
push ecx
call fcn.00403116
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004030e4
test eax, eax
je 0x40308f
test byte [ebp + 0x17], 0x80
je 0x403078
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40aff0
mov dword [ebp - 0xc], eax
call fcn.00405cfa
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x4030da
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402f78
mov esi, dword [ebp + 0x14]
mov edi, 0x40b0c0
push esi
push edi
call fcn.004030e4
test eax, eax
je 0x40308f
sub dword [ebp + 0x14], esi
mov dword [0x40b008], edi
mov dword [0x40b00c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40aff0
mov dword [0x40b010], ebx
mov dword [0x40b014], eax
call fcn.00405d1a
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x403070
mov esi, dword [0x40b010]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x409234], 1
mov edi, eax
je 0x40301a
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402fe7
cmp dword [ebp + 0x14], 0
jne 0x40301a
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push 0x409194
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00404cee
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x403065
cmp dword [ebp + 0x10], eax
jne 0x403043
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403074
cmp dword [ebp - 0x10], esi
jne 0x403074
add dword [ebp - 4], esi
jmp 0x403059
sub dword [ebp - 8], esi
add dword [ebp - 4], esi
cmp dword [ebp - 8], 1
mov ebx, dword [0x40b010]
jl 0x4030da
cmp dword [ebp - 0x14], 1
jne 0x402f9b
jmp 0x4030da
cmp dword [ebp + 0x14], eax
jg 0x402f6b
jmp 0x4030da
push 0xfffffffffffffffc
jmp 0x403091
push 0xfffffffffffffffe
jmp 0x403091
test edi, edi
je 0x4030cf
cmp dword [ebp + 0x14], esi
jge 0x403084
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004030e4
test eax, eax
jne 0x4030d7
push 0xfffffffffffffffd
pop eax
jmp 0x4030dd
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x40309f
mov esi, dword [ebp + 0x14]
mov edi, 0x40b0c0
push esi
push edi
call fcn.004030e4
test eax, eax
je 0x40308f
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403074
cmp esi, dword [ebp + 0x10]
jne 0x403074
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403094
jmp 0x4030da
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4051a7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x422518], 0x44
push eax
xor eax, eax
push 0x422518
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4051e2
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x40526c
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call fcn.0040550e
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x4052a2
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423f88], eax
jmp 0x405427
mov dword [ebp + 8], ecx
push edi
and dword [ebp + 8], 1
je 0x4052bd
test eax, eax
je 0x4053d2
test cl, 2
je 0x4053d2
mov esi, 0x421518
push ebx
push esi
call fcn.0040593a
cmp dword [ebp + 8], 0
je 0x4052dc
push 0x409380
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4052e2
push ebx
call fcn.00405474
push 0x409010
push ebx
call sub.KERNEL32.dll_lstrcatA
push ebx
call sub.KERNEL32.dll_lstrlenA
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4053c8
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405458
cmp byte [eax], 0
je 0x405333
cmp byte [ebp - 0x18], 0
je 0x405333
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405349
mov al, byte [esi + 1]
test al, al
je 0x4053a7
cmp al, 0x2e
jne 0x405349
cmp byte [esi + 2], 0
je 0x4053a7
push esi
push edi
call fcn.0040593a
test byte [ebp - 0x148], 0x10
je 0x40536e
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4053a7
push dword [ebp + 0xc]
push ebx
call fcn.0040526c
jmp 0x4053a7
push ebx
call fcn.004055f2
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40539f
test byte [ebp + 0xc], 4
je 0x405397
push ebx
push 0xfffffffffffffff1
call fcn.00404cee
push 0
push ebx
call fcn.00405688
jmp 0x4053a7
inc dword [0x423f88]
jmp 0x4053a7
push ebx
push 0xfffffffffffffff2
call fcn.00404cee
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405311
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4053d2
and byte [edi - 1], 0
xor esi, esi
pop edi
cmp dword [ebp + 8], esi
je 0x405427
cmp dword [ebp - 8], esi
jne 0x4053e7
inc dword [0x423f88]
jmp 0x405427
push ebx
call fcn.00405be2
test eax, eax
je 0x405427
push ebx
call fcn.0040542d
push ebx
call fcn.004055f2
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40541f
test byte [ebp + 0xc], 4
je 0x4053df
push ebx
push 0xfffffffffffffff1
call fcn.00404cee
push esi
push ebx
call fcn.00405688
jmp 0x405427
push ebx
push 0xffffffffffffffe5
call fcn.00404cee
pop esi
pop ebx
leave
ret 8