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

Disassembly:
cmp dword [0x40c188], 0
push ebx
push esi
mov esi, 0x40c190
jne 0x409407
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x40c1a8], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x40c188], 1
push dword [0x40c1a8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4094a4
push 0x14
push 8
push dword [0x40c054]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x4094ce
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x40c18c]
test eax, eax
je 0x409449
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x40c18c], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x4094d3
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x40c1a8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x40c054]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4094ce
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8
Function at 0x30071b52
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x30001bc0]
jne 0x30071f55
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x30096950], eax
mov dword [0x3009694c], ecx
mov dword [0x30096948], edx
mov dword [0x30096944], ebx
mov dword [0x30096940], esi
mov dword [0x3009693c], edi
mov word [0x30096968], ss
mov word [0x3009695c], cs
mov word [0x30096938], ds
mov word [0x30096934], es
mov word [0x30096930], fs
mov word [0x3009692c], gs
pushfd
pop dword [0x30096960]
mov eax, dword [ebp]
mov dword [0x30096954], eax
mov eax, dword [ebp + 4]
mov dword [0x30096958], eax
lea eax, [ebp + 8]
mov dword [0x30096964], eax
mov eax, dword [ebp - 0x320]
mov dword [0x300968a0], 0x10001
mov eax, dword [0x30096958]
mov dword [0x30096854], eax
mov dword [0x30096848], 0xc0000409
mov dword [0x3009684c], 1
mov eax, dword [0x30001bc0]
mov dword [ebp - 0x328], eax
mov eax, dword [0x30075614]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x30096898], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x30001bf4
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x30096898], 0
jne 0x30072045
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret

Function at 0x30072408
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x30001ca8
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x3007245e
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x300015d0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x30072451
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x30072460
xor eax, eax
pop esi
leave
ret 4
Function at 0x10002120
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x1000218a
push esi
lea edi, [eax + 0x400]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x1000215a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x100021a6
push ecx
push esi
call fcn.10002ca0
add esp, 8
mov ebx, eax
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x100021c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x10002252
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x10002244
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x1000223c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x10002205
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x10003470
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x100034a8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x100035f0
Capabilities:
Connect to http server

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1001c8a0
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, ecx
call fcn.100037d0
mov ecx, ebx
call fcn.10003470
test eax, eax
jne 0x1000362d
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x14
mov eax, dword [ebx + 4]
push esi
lea esi, [ebx + 4]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x10003673
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push 0
neg ecx
sbb ecx, ecx
and ecx, 0x8000000
push ecx
mov ecx, dword [esp + 0x3c]
push 1
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [ebx]
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebx + 0x10], eax
jmp 0x100037a5
push ebp
push edi
push esi
lea ecx, [esp + 0x1c]
call fcn.100156d9
push 0x3a
mov ecx, esi
mov dword [esp + 0x2c], 0
mov ebp, 0x15
call fcn.10014ad5
mov edi, eax
test edi, edi
jl 0x100036f0
lea ecx, [esp + 0x1c]
push edi
push ecx
mov ecx, esi
call fcn.10014a32
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 1
call fcn.10015a51
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 0
call fcn.10015964
mov edx, dword [esi]
mov ecx, esi
mov eax, dword [edx - 8]
sub eax, edi
dec eax
push eax
lea eax, [esp + 0x20]
push eax
call fcn.100149b6
mov eax, dword [eax]
push eax
call fcn.1000a1d1
add esp, 4
lea ecx, [esp + 0x1c]
mov ebp, eax
call fcn.10015964
mov ecx, dword [0x10028728]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
and edx, 0xffff
push edx
push eax
push ecx
lea edx, [esp + 0x20]
push str._s__s:_d
push edx
mov byte [esp + 0x3c], 2
call fcn.10014e44
mov eax, dword [0x10028728]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x24]
push ecx
push 0x100258b4
push edx
mov byte [esp + 0x48], 3
call fcn.10014e44
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x30]
add esp, 0x20
mov edx, dword [esp + 0x14]
neg eax
sbb eax, eax
push 0
and eax, 0x8000000
push eax
mov eax, dword [esp + 0x20]
push 1
push ecx
mov ecx, dword [ebx]
push edx
push ebp
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
lea ecx, [esp + 0x10]
mov dword [ebx + 0x10], eax
mov byte [esp + 0x28], 2
call fcn.10015964
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0
call fcn.10015964
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.10015964
pop edi
pop ebp
mov ecx, dword [ebx + 0x10]
xor eax, eax
test ecx, ecx
mov ecx, dword [esp + 0x18]
pop esi
setne al
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x14

Function at 0x10003900
Capabilities:
Send file using ftp

Disassembly:
mov eax, dword [ecx + 0x10]
test eax, eax
jne 0x1000390a
ret 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
neg ecx
sbb ecx, ecx
push 0
add ecx, 2
push ecx
mov ecx, dword [esp + 0xc]
push edx
push ecx
push eax
call dword [sym.imp.WININET.dll_FtpPutFileA]
ret 0xc
Function at 0x10004e70
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x10004ed6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x10004ed6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x10004eb7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x10005b90
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.10005ce0
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x10005bb0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WSOCK32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x10005be0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WSOCK32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x10005c37
push esi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x10005c4d
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.10005c70
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WSOCK32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x10005c70
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WSOCK32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x10005d00
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
jne 0x10005d49
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x10006470
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1001cb20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.10005d70
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.10005df0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.10005df0
lea ecx, [esi + 0xc]
call fcn.100158ef
lea ecx, [esi + 0x10]
call fcn.100158ef
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.10008a70
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.10008a70
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.10008a70
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.10015964
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.10015964
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x10007290
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1001cd48
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x100072b8
call fcn.100077d0
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x1000739b
cmp byte [edi], 0
je 0x1000739b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x100072dd
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.10005b90
test eax, eax
jne 0x100072fd
push 0x10028474
lea ecx, [esi + 0x38]
call fcn.10015aa1
jmp 0x1000739b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.10005be0
test eax, eax
jne 0x1000732c
mov ecx, esi
call fcn.10005ce0
push edi
add esi, 0x38
push 0x10028450
push esi
call fcn.10014e44
add esp, 0xc
jmp 0x1000739b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.10008060
test eax, eax
je 0x10007394
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WSOCK32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.10007470
test eax, eax
jne 0x100073b0
push edi
lea eax, [esi + 0x38]
push 0x1002842c
push eax
call fcn.10014e44
add esp, 0xc
mov ecx, esi
call fcn.100077d0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x10007458
mov ecx, dword [0x10028728]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.10014e44
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.10005c90
test eax, eax
jne 0x1000741a
push 0x10028410
lea ecx, [esi + 0x38]
call fcn.10015aa1
jmp 0x1000742a
push 0xfa
mov ecx, esi
call fcn.10008060
test eax, eax
jne 0x10007447
mov ecx, esi
call fcn.100077d0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.10015964
jmp 0x1000739b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.10015964
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
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
nop
push 1
nop
pop eax
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
sub 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
push esi
pop edi
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
push edi
pop ecx
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 0x408954
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push 0x4085d8
mov edx, dword [esp]
add esp, 4
push eax
pop eax
call fcn.0040897b
mov edi, edi
sub eax, 1
xor dword [ecx], edx
inc ecx
cmp ecx, ebx
jne main
ret
Function at 0x10001b80
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
mov eax, dword [0x10024470]
xor eax, esp
mov dword [esp + 0x148], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [esp + 0x10]
push ecx
push str.c:.
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10001bd2
or eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.10005bbc
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
je 0x10001c0c
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea ebx, [ebx]
push str.rsyfdzgoxop
lea eax, [esp + 0x40]
push eax
call ebx
test eax, eax
je 0x10001c2a
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
jne 0x10001bf0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.10005bbc
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
mov dx, word [esp + 0x3c]
mov ecx, dword [esp + 0x154]
pop edi
pop esi
pop ebx
mov word [eax + 0xe6], dx
xor ecx, esp
mov eax, 1
call fcn.10005bbc
mov esp, ebp
pop ebp
ret
Function at 0x100044f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001c528
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10024470]
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 0x10004681
cmp byte [ebx + 0x49], 0
je 0x10004681
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x10004675
lea esi, [ebp - 0x2c]
call fcn.10004090
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x10004563
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x1c]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x1000459c
dec eax
je 0x100045a0
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x1000467c
call fcn.10002e20
xor al, al
jmp 0x10004683
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x100045b0
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x100045dd
cmp edi, 0x10
jae 0x100045bf
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.1000710c
add esp, 0x10
cmp esi, eax
jne 0x1000466d
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x10004679
test esi, esi
jne 0x10004557
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x1000469e
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x1000469e
cmp edi, esi
jae 0x10004656
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.100049d0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x10004557
mov ecx, eax
cmp edi, 0x10
jae 0x10004632
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 0x1000464d
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x10004551
test esi, esi
jne 0x10004628
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x10004665
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x10004551
lea ecx, [ebp - 0x2c]
call fcn.10002e20
xor al, al
jmp 0x10004683
lea ecx, [ebp - 0x2c]
call fcn.10002e20
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.10005bbc
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.1000562c
int3
Function at 0x100048a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001c49b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10024470]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10005780
push 4
mov dword [ebp - 4], 0
call fcn.100076f2
mov edi, eax
add esp, 4
test edi, edi
je 0x1000491c
call fcn.1000557b
mov dword [edi], eax
call fcn.1000533a
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.10005741
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x10004912
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.10005769
jmp 0x1000491e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10005bbc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10024470]
jne 0x10005bc6
repz ret
jmp fcn.10009ceb