joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b5d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [0x452004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xorps xmm0, xmm0
mov dword [ebp - 0x31c], edx
lea eax, [edx + 2]
mov dword [ebp - 0x320], ecx
push 0x2f
push eax
movlpd qword [ebp - 0x340], xmm0
mov ebx, 1
movlpd qword [ebp - 0x338], xmm0
movups xmmword [ebp - 0x330], xmm0
call fcn.00423340
mov edi, eax
add esp, 8
test edi, edi
je 0x40b6c8
nop dword [eax]
mov eax, dword [ebp - 0x31c]
mov esi, edi
sub esi, eax
cmp esi, 0x104
jae 0x40b6f1
push esi
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.004241c0
mov ecx, dword [ebp - 0x320]
lea eax, [ebp - 0x340]
add esp, 0xc
mov byte [ebp + esi - 0x110], 0
lea edx, [ebp - 0x110]
push eax
call fcn.004074d0
add esp, 4
test eax, eax
jne 0x40b6a7
push ecx
lea eax, [ebp - 0x318]
push eax
lea edx, [ebp - 0x110]
call fcn.00407330
add esp, 8
lea eax, [ebp - 0x318]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40b6db
lea ecx, [edi + 1]
xor eax, eax
cmp byte [ecx], al
push 0x2f
cmovne eax, ebx
push ecx
mov ebx, eax
call fcn.00423340
mov edi, eax
add esp, 8
test edi, edi
jne 0x40b630
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422702
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422702
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00422702
mov esp, ebp
pop ebp
ret
Function at 0x40fd90
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10b4
call fcn.004423e0
mov eax, dword [0x452004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x1084], esi
push edi
test esi, esi
je 0x40ffc9
mov eax, dword [esi + 0x270]
test eax, eax
je 0x40ffc9
mov edx, dword [eax + 0x28]
test edx, edx
je 0x40fdf9
lea eax, [ebp - 0x10b0]
push eax
push 0x44a090
call fcn.004061b0
add esp, 8
test eax, eax
je 0x40fdf9
mov ecx, dword [ebp - 0x10a0]
mov dword [ebp - 0x1088], ecx
test ecx, ecx
jne 0x40fe16
jmp 0x40fe03
mov dword [ebp - 0x1088], 0
mov eax, dword [esi + 0x270]
cmp dword [eax + 0xa4], 0
je 0x40ffc9
lea eax, [esi + 0x2a8]
push eax
call fcn.00427887
add esp, 4
test eax, eax
je 0x40fe3f
push eax
push str._d__b__Y:_H:_M:_S__z
lea eax, [ebp - 0x48]
push 0x40
push eax
call fcn.0042a8be
add esp, 0x10
jmp 0x40fe6f
lea eax, [ebp - 0x48]
mov esi, str.01_Jan_1970:00:00:00_0000
mov ecx, eax
mov edx, 0x40
sub esi, ecx
cmp edx, 1
jbe 0x40fe62
mov cl, byte [esi + eax]
dec edx
mov byte [eax], cl
inc eax
cmp byte [esi + eax], 0
jne 0x40fe50
mov esi, dword [ebp - 0x1084]
mov byte [eax], 0
mov byte [ebp - 9], 0
lea eax, [esi + 0x290]
mov byte [ebp - 0x7c], 0
test eax, eax
je 0x40fe98
cmp word [eax], 2
jne 0x40fe98
push 2
push 0
push 0
push 0x32
lea ecx, [ebp - 0x7c]
push ecx
push 0x10
push eax
call dword [sym.imp.WS2_32.dll_getnameinfo]
mov edx, str.Referer
mov ecx, esi
call fcn.004065d0
mov edi, 0x44c318
test eax, eax
mov ebx, edi
mov edx, str.User_Agent
cmovne ebx, eax
mov ecx, esi
mov dword [ebp - 0x108c], ebx
call fcn.004065d0
mov ebx, dword [ebp - 0x1084]
test eax, eax
mov ecx, edi
mov edx, 0x44c318
cmovne ecx, eax
mov eax, dword [esi + 0x14]
test eax, eax
mov esi, 0x44a7a0
push ecx
cmovne esi, eax
mov ecx, 0x44a7a0
mov eax, dword [ebx + 4]
test eax, eax
cmovne edi, eax
mov eax, dword [ebx]
test eax, eax
cmovne edx, eax
mov eax, dword [ebx + 0x18]
test eax, eax
mov ebx, 0x44c318
cmovne ebx, eax
mov eax, 0x44d4c0
mov dword [ebp - 0x1090], ebx
mov ebx, dword [ebp - 0x108c]
push ebx
mov ebx, dword [ebp - 0x1084]
push dword [ebx + 0x2c4]
cmp dword [ebx + 0x14], 0
push dword [ebx + 0x2c0]
cmove eax, ecx
push dword [ebx + 0x300]
push dword [ebx + 0x10]
push esi
push eax
push edi
push edx
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x1090]
lea eax, [ebp - 0x7c]
push eax
push str._s____s___s____s__s_s_s_HTTP__s___d__I64d__s__s
push 0x1000
lea eax, [ebp - 0x1080]
push eax
push 0
push ebx
call fcn.004062d0
mov eax, dword [ebx + 0x270]
add esp, 0x48
mov eax, dword [eax + 0xa8]
test eax, eax
je 0x40ff82
lea ecx, [ebp - 0x1080]
push ecx
push ebx
call eax
add esp, 8
mov ebx, dword [ebp - 0x1088]
test ebx, ebx
je 0x40ffc9
push 0x454924
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x1080]
push eax
push 0x44a584
push ebx
call fcn.00401900
add esp, 0xc
push ebx
call fcn.004293df
add esp, 4
push 0x454924
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call fcn.00427930
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00422702
mov esp, ebp
pop ebp
ret
Function at 0x410c10
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x203c
call fcn.004423e0
mov eax, dword [0x452004]
xor eax, esp
mov dword [esp + 0x2038], eax
push esi
mov esi, ecx
test esi, esi
je 0x410cf1
push 4
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0x10001
push eax
push 0x80
push 0xffff
push dword [esi + 0x27c]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x410c85
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00431e66
add esp, 4
push eax
push str.close_socket_gracefully
push str._s:_setsockopt_SOL_SOCKET_SO_LINGER__failed:__s
push esi
call fcn.00406360
add esp, 0x10
push 1
push dword [esi + 0x27c]
call dword [sym.imp.WS2_32.dll_shutdown]
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 1
push eax
push 0x8004667e
push dword [esi + 0x27c]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
movsd xmm0, qword [0x44f798]
lea eax, [esp + 0x38]
sub esp, 8
mov edx, esi
xor ecx, ecx
movsd qword [esp], xmm0
push 0x2000
push eax
call fcn.004080f0
add esp, 0x10
test eax, eax
jg 0x410cb1
push dword [esi + 0x27c]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x27c], 0xffffffff
mov ecx, dword [esp + 0x203c]
pop esi
xor ecx, esp
call fcn.00422702
mov esp, ebp
pop ebp
ret
Function at 0x411880
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], esi
push edi
test esi, esi
jne 0x4118a5
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push dword [esi + 0xe4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x428]
cmp eax, dword [esi + 0x42c]
jne 0x411930
cmp dword [esi], 0
jne 0x41192c
push dword [0x454c6c]
lea edi, [esi + 0x430]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
mov ecx, dword [ebx + 8]
push edi
mov dword [edx + esi*4], ecx
inc dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x10]
push dword [esi + 0xe4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0xffffffffffffffff
push dword [ebx + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call ebx
push 0xffffffffffffffff
push dword [esi + 0xe4]
call ebx
mov eax, dword [esi + 0x428]
cmp eax, dword [esi + 0x42c]
je 0x4118c1
mov ebx, dword [esp + 0x14]
mov eax, dword [esi + 0x428]
cmp eax, dword [esi + 0x42c]
jle 0x4119b6
mov eax, dword [esi + 0x42c]
mov ecx, 0x14
cdq
idiv ecx
lea eax, [edx + edx*4]
movups xmm0, xmmword [esi + eax*8 + 0x108]
movups xmmword [ebx], xmm0
movups xmm0, xmmword [esi + eax*8 + 0x118]
movups xmmword [ebx + 0x10], xmm0
movq xmm0, qword [esi + eax*8 + 0x128]
movq qword [ebx + 0x20], xmm0
mov eax, dword [esi + 0x42c]
inc eax
mov dword [esi + 0x42c], eax
cmp dword [esi + 0x42c], ecx
jle 0x4119b6
nop dword [eax]
mov eax, dword [esi + 0x42c]
sub eax, 0x14
mov dword [esi + 0x42c], eax
mov eax, dword [esi + 0x428]
sub eax, 0x14
mov dword [esi + 0x428], eax
cmp dword [esi + 0x42c], ecx
jg 0x411990
lea edi, [esi + 0x450]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x18], 0
je 0x4119f6
mov eax, dword [edi + 0x1c]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [edi + 0x18]
mov edx, 1
cmp eax, edx
jle 0x4119f2
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx + edx*4]
mov dword [ecx + edx*4 - 4], eax
inc edx
mov eax, dword [edi + 0x18]
cmp edx, eax
jl 0x4119e0
dec eax
mov dword [edi + 0x18], eax
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esi + 0xe4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esi]
xor eax, eax
pop edi
test ecx, ecx
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4130c1
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
or edx, 0xffffffff
push edi
add dword [esi + 0xa4], 0xfffffffc
lea edi, [esi + 0xa8]
mov ebx, dword [esi + 0xa4]
test ebx, ebx
je 0x4130fa
nop
movzx eax, byte [edi]
lea edi, [edi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x454c70]
sub ebx, 1
jne 0x4130e0
mov edi, dword [esi + 0xa4]
not edx
movzx ecx, byte [edi + esi + 0xab]
movzx eax, byte [edi + esi + 0xaa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + esi + 0xa9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + esi + 0xa8]
shl ecx, 8
or ecx, eax
cmp edx, ecx
jne 0x4132f8
lea ebx, [esi + 0xa0]
mov dword [ebx], 2
mov al, byte [esi + 0xa9]
test al, 0x3f
jne 0x4132ef
test al, 0x40
je 0x413182
push edi
lea edi, [esi + 0xa8]
mov ecx, esi
push ebx
mov edx, edi
call fcn.00412fc0
add esp, 8
cmp eax, 1
jne 0x4132f8
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov al, byte [esi + 0xa9]
jmp 0x41318e
or ecx, 0xffffffff
lea edi, [esi + 0xa8]
or edx, 0xffffffff
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], edx
test al, al
jns 0x4131bc
push dword [esi + 0xa4]
mov edx, edi
mov ecx, esi
push ebx
call fcn.00412fc0
add esp, 8
cmp eax, 1
jne 0x4132f8
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
jmp 0x4131c2
or eax, 0xffffffff
or ecx, 0xffffffff
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
mov edx, dword [esi + 0xa4]
mov eax, edx
mov ecx, dword [ebx]
sub eax, ecx
cmp eax, 2
jb 0x4132f8
mov al, byte [ecx + esi + 0xa8]
inc ecx
mov dword [ebx], ecx
cmp al, 0x21
jne 0x4132ef
mov al, byte [ecx + esi + 0xa8]
inc ecx
mov dword [ebx], ecx
cmp al, 1
jne 0x4132ef
sub edx, ecx
cmp edx, 1
jb 0x4132f8
mov dl, byte [ecx + esi + 0xa8]
lea eax, [ecx + 1]
mov edi, dword [esi + 0x4a8]
mov dword [ebx], eax
cmp dl, 0x27
ja 0x4132ef
movzx eax, dl
mov ecx, eax
and eax, 1
shr ecx, 1
add eax, 2
add ecx, 0xb
shl eax, cl
mov ecx, dword [edi + 0x3c]
mov dword [edi + 0x30], eax
test ecx, ecx
je 0x41328d
cmp eax, dword [edi + 0x34]
jbe 0x413251
pop edi
pop esi
mov eax, 4
pop ebx
ret
mov dword [edi + 0x2c], eax
cmp ecx, 2
jne 0x41328d
cmp dword [edi + 0x38], eax
jae 0x41328d
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x413271
push ecx
call fcn.00424740
mov eax, dword [edi + 0x30]
add esp, 4
push eax
call fcn.0042475b
add esp, 4
mov dword [edi + 0x18], eax
test eax, eax
jne 0x41328d
mov dword [edi + 0x38], eax
mov eax, 3
pop edi
pop esi
pop ebx
ret
mov dword [edi + 0x68], 0
mov dword [edi + 0x40], 0
mov byte [edi + 0x50], 1
mov dword [edi + 0x6ee4], 0
mov edx, dword [esi + 0xa4]
mov ecx, dword [ebx]
cmp ecx, edx
jae 0x4132c7
mov al, byte [ecx + esi + 0xa8]
inc ecx
mov dword [ebx], ecx
test al, al
jne 0x4132ef
cmp ecx, edx
jb 0x4132b5
pop edi
mov dword [esi + 0x40], 0
xor eax, eax
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
pop esi
mov dword [ebx], 0
pop ebx
ret
pop edi
pop esi
mov eax, 6
pop ebx
ret
pop edi
pop esi
mov eax, 7
pop ebx
ret
Function at 0x414cd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x452004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x45addc
push 0x45adbc
push str.http:___s:_s_index.html
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.00401100
mov eax, dword [str.C:Program_Files__x86_GoogleChromeApplicationchrome.exe]
add esp, 0x14
xor esi, esi
test eax, eax
je 0x414d30
push eax
push 0x44a068
call fcn.00402240
add esp, 8
test eax, eax
jne 0x414d59
mov eax, dword [esi*4 + 0x44a4f8]
inc esi
test eax, eax
jne 0x414d12
push 5
push 0
push 0
lea eax, [ebp - 0x84]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00422702
mov esp, ebp
pop ebp
ret
push 5
push 0
lea eax, [ebp - 0x84]
push eax
push dword [esi*4 + 0x44a4f4]
jmp 0x414d3d
Function at 0x432fbd
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [esi + eax*8 - 0x7b]
mov ebp, 0x55fffffc

Function at 0x43361d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
invalid
invalid

Function at 0x433a14
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax], al
push 0
push dword [ebp - 0x66c]
call dword [ebp - 0x33c]
mov dword [ebp - 0x378], eax
push dword [ebp - 0x378]
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
mov dword [ebp - 4], eax
call fcn.00432735
xor edi, esi
insb byte es:[edi], dx
fiadd dword [eax - 0x6db5b]
inc dword [eax]
and byte [ebp - 0x6db], 0
mov byte [ebp - 0x6da], 0x2c
and byte [ebp - 0x6d9], 0
mov byte [ebp - 0x6d8], 0x81
mov byte [ebp - 0x6d7], 0xb6
mov byte [ebp - 0x6d6], 0xb2
mov byte [ebp - 0x6d5], 0xb7
sub edi, ecx
invalid
push dword [edi - 0x6d37a3a]
invalid
call dword [ebp - 0x6d27a3a]
invalid
invalid
mov edx, 0xf92e85c6
invalid
invalid
mov edi, 0xf92f85c6
invalid
push dword [esi - 0x6cf7a3a]
invalid
call ebx
call fcn.00432735
test al, 7
xor edi, dword [ebx]
lea eax, [ebp - 0x6dc]
push eax
call fcn.00432745
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004326fa
add esp, 0xc
mov dword [ebp - 0x6c8], eax
push 0
lea eax, [ebp - 0x6e0]
push eax
push dword [ebp - 0x378]
push dword [ebp - 4]
push dword [ebp - 0x66c]
call dword [ebp - 0x6c8]
mov dword [ebp - 0x6cc], eax
push dword [ebp - 0x66c]
call dword [ebp - 0x680]
cmp dword [ebp - 0x6cc], 0
je 0x4348c8
push 5
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0x1d]
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.004326a6
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x433b42
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x433b8b
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x433b35
call fcn.00432735
xchg byte [ebx], bl
bound ecx, qword [ecx]
and byte [ebp - 0x72c], 0
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.00432735
lodsb al, byte [esi]
pop ds
or ch, byte [esi]
lea eax, [ebp - 0x72c]
push eax
call fcn.00432745
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004326fa
add esp, 0xc
mov dword [ebp - 0x6e4], eax
call fcn.00432735
int3
Function at 0x43471d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 1
pop eax
test eax, eax
je 0x4347db
inc dword [eax]
je 0x434726
jmp 0x4347db
push 0
push 0
push 2
push 0
push 2
push 0x40000000
push dword [ebp - 0x3a0]
call dword [ebp - 0x3c8]
mov dword [ebp - 0x380], eax
cmp dword [ebp - 0x380], 0xffffffff
je 0x43477f
push 0
lea eax, [ebp - 0x6c4]
push eax
push dword [ebp - 0x38c]
push dword [ebp - 0x748]
push dword [ebp - 0x380]
call dword [ebp - 0x730]
push dword [ebp - 0x380]
call dword [ebp - 0x680]
jmp 0x434784
jmp 0x4340d7
and dword [ebp - 0x37c], 0
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x4347cb
lea eax, [ebp - 0x714]
push eax
call fcn.00432745
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
invalid
cmp bh, bl

Function at 0x4399f7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043986d
Function at 0x401550
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
call sub.kernel32.dll_GetCommandLineA
mov dword [0x404c74], eax
mov ecx, ebp
add ecx, 8
mov dword [0x40413d], ecx
mov dword [0x404c78], 0x30
mov dword [0x404c7c], 2
mov dword [0x404c84], 0
mov dword [0x404c88], 0
mov dword [0x404c80], 0x402d80
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x404c8c], eax
mov dword [0x404c98], 0xf
mov dword [0x404ca0], 0x404bef
mov dword [0x404135], eax
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [0x404c90], eax
mov dword [0x404ca4], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [0x404c94], eax
push 0x404c78
call sub.user32.dll_RegisterClassExA
push 0
push dword [0x404135]
push 0
push 0
push 0x24e
push 0x320
push 0xd8
push 0xa0
push 0x40000
push str.1.52436
push str.window
push 0
call sub.user32.dll_CreateWindowExA
mov dword [0x404c6c], eax
push 0
push dword [0x404c6c]
call sub.user32.dll_ShowWindow
push dword [0x404c6c]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
push 0x404ca8
call sub.user32.dll_GetMessageA
or eax, eax
je 0x40166d
push 0x404ca8
call sub.user32.dll_TranslateMessage
push 0x404ca8
call sub.user32.dll_DispatchMessageA
jmp 0x401643
lea ecx, [0x404135]
mov eax, dword [0x404cb0]
mov edi, dword [0x404d08]
add edi, eax
call edi
push eax
call sub.kernel32.dll_ExitProcess
int3
Function at 0x402970
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, 0x404d14
mov ecx, dword [edx]
mov edi, dword [edx + 4]
mov eax, dword [edi]
add edi, 4
mov esi, edi
mov ebx, esi
add edi, eax
mov edx, edi
dec edx
sub ecx, eax
sub ecx, 4
push edx
mov edx, 0x404d14
mov dword [edx], ecx
mov dword [edx + 4], edi
pop edx
mov al, byte [edi]
mov ah, byte [esi]
add ah, byte [0x40416a]
xor al, ah
mov byte [edi], al
cmp esi, edx
je 0x4029b2
inc esi
inc edi
dec ecx
jne 0x402999
jmp 0x4029b6
mov esi, ebx
jmp 0x4029ac
mov edi, esi
push 0x3c
push 0x404d14
push 0x111
push dword [0x404c6c]
call sub.user32.dll_SendMessageA
mov ecx, dword [0x404d14]
mov edi, dword [0x404d18]
mov esi, dword [0x404d08]
mov al, byte [esi]
mov byte [edi], al
inc esi
inc edi
dec ecx
jne 0x4029e1
mov esi, dword [0x404165]
mov ecx, dword [0x404161]
push ecx
add ecx, esi
mov dword [0x404c4c], ecx
pop ecx
mov eax, dword [esi]
inc esi
inc esi
nop
inc esi
inc esi
mov edi, dword [0x404d08]
mov ebx, esi
add ebx, eax
mov dword [0x404c48], ebx
mov edx, esi
add esi, eax
mov ecx, 0
movzx eax, byte [edx]
inc eax
cmp edx, ebx
jae 0x402a7c
cmp eax, ecx
jae 0x402a2e
nop
ret
sub eax, ecx
mov ecx, eax
test ecx, ecx
je 0x402a3f
mov al, byte [esi]
mov byte [edi], al
inc esi
inc edi
dec ecx
jne 0x402a36
inc edx
mov al, byte [edx]
inc edx
movzx ecx, byte [edx]
test ecx, ecx
je 0x402a52
push ecx
mov byte [edi], al
inc edi
dec ecx
jne 0x402a4b
pop ecx
inc edx
movzx eax, byte [edx]
cmp cl, 0xff
jne 0x402a6e
cmp al, 0xff
jne 0x402a67
inc edx
movzx eax, word [edx]
inc edx
inc edx
jmp 0x402a78
mov eax, 0xff
jmp 0x402a78
cmp al, 0xff
jne 0x402a78
inc edx
movzx eax, word [edx]
inc edx
inc edx
jmp 0x402a24
mov ecx, dword [0x404c4c]
sub ecx, esi
test ecx, ecx
je 0x402a91
mov al, byte [esi]
mov byte [edi], al
inc esi
inc edi
dec ecx
jne 0x402a88
mov edi, dword [0x404d08]
sub edi, 0x3fd
mov dword [0x404d08], edi
ret
Function at 0x40107c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push ebx
push 0xfffffffffffffffc
push dword [esi + 8]
mov dword [ebp - 8], eax
mov dword [esi + 4], ebx
call edi
lea eax, [ebp - 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
lea eax, [ebp - 0x50]
push 4
push eax
push dword [esi + 8]
call ebx
test eax, eax
je 0x4011f2
lea eax, [ebp - 0x50]
push 2
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00403e50
lea eax, [ebp - 0x4e]
push 2
push eax
lea eax, [ebp + 0xa]
push eax
call fcn.00403e50
add esp, 0x18
push dword [ebp - 0xc]
call fcn.0040121d
cmp word [ebp + 0xa], ax
je 0x40110b
mov ecx, dword [ebp - 8]
and dword [esi], 0
push 1
mov dword [esi + 0xc], ecx
pop eax
mov dword [esi + 4], eax
jmp 0x401216
push 2
push 0
push 0xfffffffffffffffa
mov dword [esi], 1
push dword [esi + 8]
call edi
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x50]
push 2
push eax
push dword [esi + 8]
call ebx
test eax, eax
je 0x4011f2
lea eax, [ebp - 0x50]
push 2
push eax
lea eax, [esi + 0x20]
push eax
call fcn.00403e50
add esp, 0xc
push 2
push 0
push 0xfffffffffffffff6
push dword [esi + 8]
call edi
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x50]
push 4
push eax
push dword [esi + 8]
call ebx
test eax, eax
je 0x4011f2
lea ecx, [ebp - 0x50]
lea eax, [esi + 0xc]
push 4
push ecx
push eax
call fcn.00403e50
add esp, 0xc
push 0xfffffffffffffff2
pop eax
push 2
push 0
push eax
mov dword [ebp - 0x10], eax
push dword [esi + 8]
call edi
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x50]
push 4
push eax
push dword [esi + 8]
call ebx
test eax, eax
je 0x4011f2
lea ecx, [ebp - 0x50]
lea eax, [esi + 0x18]
push 4
push ecx
push eax
call fcn.00403e50
mov ecx, dword [esi + 0x18]
add esp, 0xc
test ecx, ecx
jbe 0x4011cd
mov eax, dword [ebp - 8]
push 0xfffffffffffffff2
sub eax, ecx
sub eax, 0xe
mov dword [esi + 0x1c], eax
pop eax
sub eax, ecx
jmp 0x4011d0
mov eax, dword [ebp - 0x10]
push 2
add eax, 0xfffffffc
push 0
push eax
push dword [esi + 8]
call edi
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x50]
push 4
push eax
push dword [esi + 8]
call ebx
test eax, eax
jne 0x4011f6
xor eax, eax
jmp 0x401216
lea eax, [ebp - 0x50]
lea edi, [esi + 0x10]
push 4
push eax
push edi
call fcn.00403e50
add esp, 0xc
cmp dword [edi], 0
jbe 0x401213
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4