joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401100
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
mov eax, 0x55555556
push esi
lea ecx, [ebp*4]
imul ecx
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax + 4]
push ecx
call fcn.0040f596
add esp, 4
mov esi, eax
test eax, eax
jne 0x401132
pop esi
or eax, 0xffffffff
pop ebp
ret
xor ecx, ecx
push edi
test ebp, ebp
jle 0x4011bf
mov edi, dword [esp + 0x10]
push ebx
xor edx, edx
mov dl, byte [ecx + edi]
inc ecx
shl edx, 8
cmp ecx, ebp
jge 0x401156
xor ebx, ebx
mov bl, byte [ecx + edi]
add edx, ebx
inc ecx
shl edx, 8
cmp ecx, ebp
jge 0x401165
xor ebx, ebx
mov bl, byte [ecx + edi]
add edx, ebx
mov ebx, edx
inc ecx
sar ebx, 0x12
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], bl
mov ebx, edx
sar ebx, 0xc
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], bl
mov ebx, edx
sar ebx, 6
and ebx, 0x3f
and edx, 0x3f
cmp ecx, ebp
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], bl
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 3], dl
jle 0x4011ac
mov byte [esi + 3], 0x3d
lea edx, [ebp + 1]
cmp ecx, edx
jle 0x4011b7
mov byte [esi + 2], 0x3d
add esi, 4
cmp ecx, ebp
jl 0x401142
pop ebx
mov ecx, dword [esp + 0x18]
mov byte [esi], 0
mov edi, eax
mov dword [ecx], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
pop esi
mov eax, ecx
pop ebp
ret

Function at 0x4011e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
inc ebx
push ebx
call fcn.0040f596
mov ecx, ebx
mov ebp, eax
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add esp, 4
and ecx, 3
xor eax, eax
test ebx, ebx
rep movsb byte es:[edi], byte [esi]
jle 0x40122b
mov cl, byte [eax + ebp]
xor cl, 0x19
sub cl, 0x7a
mov byte [eax + ebp], cl
inc eax
cmp eax, ebx
jl 0x40121a
lea edx, [esp + 0x14]
push edx
push ebx
push ebp
call fcn.00401100
push ebp
call fcn.0040f622
mov eax, dword [esp + 0x24]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4025f0
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
test eax, eax
jge 0x402614
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40260d
pop esi
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
pop esi
ret
Function at 0x404c80
Capabilities:
Get common file path
Inspect load icon resource

Disassembly:
push 0xffffffffffffffff
push 0x42cf74
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x118]
call fcn.004079d0
lea eax, [esp + 0x18]
xor ebx, ebx
push eax
push 0x100
mov dword [esp + 0x22c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, str.Setting.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push str.Port
push str.SOFT
lea ecx, [esp + 0x124]
call fcn.00407b40
mov esi, eax
cmp esi, ebx
jne 0x404d3a
lea ecx, [esp + 0x18]
mov esi, 0xc
push ecx
push 0x43a7e4
push str.Port
push str.SOFT
lea ecx, [esp + 0x128]
call fcn.00407bc0
push 0x64
call fcn.0042194f
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0x224], 1
je 0x404d5d
mov ecx, eax
call fcn.004085f0
jmp 0x404d5f
xor eax, eax
push esi
push ebp
push 0x405350
mov ecx, eax
mov byte [esp + 0x230], bl
mov dword [ebp + 0x1088], eax
call fcn.004087e0
test al, al
je 0x404dd9
mov edx, dword [ebp + 0x1088]
mov dword [ebp + 0xed8], edx
mov eax, dword [0x43b24c]
mov dword [esp + 0x10], eax
push esi
lea ecx, [esp + 0x14]
push 0x43a7d8
push ecx
mov byte [esp + 0x230], 2
call fcn.0041b981
mov edx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x10a8]
add esp, 0xc
push edx
push 1
push 0x401
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x224], bl
call fcn.00421c0e
jmp 0x404df2
mov ecx, dword [ebp + 0x10a8]
push 0x43a7cc
push 1
push 0x401
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [esp + 0x18]
lea ecx, [esp + 0x118]
push edx
push 0x43a7c8
push str.SOFT
call fcn.00407b40
test eax, eax
setne al
mov byte [0x43c7bc], al
call fcn.0042a130
mov eax, dword [eax + 0xc]
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push 0xa0
push eax
call esi
mov edi, eax
call fcn.0042a130
mov eax, dword [eax + 0xc]
push 0xa1
push eax
call esi
mov ebx, eax
call fcn.0042a130
mov eax, dword [eax + 0xc]
push 0xa2
push eax
call esi
push edi
lea ecx, [ebp + 0xe7c]
lea esi, [ebp + 0xf28]
push 0x8b
push ecx
push 0x43a7c0
mov ecx, esi
mov dword [esp + 0x24], eax
call fcn.0040be00
push ebx
lea edx, [ebp + 0x5c]
push 0x8d
push edx
push str.DDoS
mov ecx, esi
call fcn.0040be00
mov eax, dword [esp + 0x14]
add ebp, 0x6e8
push eax
push 0x90
push ebp
push 0x43a7b0
mov ecx, esi
call fcn.0040be00
mov ecx, esi
call fcn.0040bfc0
lea ecx, [esp + 0x118]
mov dword [esp + 0x224], 0xffffffff
call fcn.00407a00
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x218
ret
Function at 0x4069c0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x114
push ebx
mov ebx, ecx
push ebp
push esi
lea ebp, [ebx + 0x5a8]
push edi
mov ecx, 0x1e
xor eax, eax
mov edi, ebp
lea esi, [ebx + 0x620]
rep stosd dword es:[edi], eax
push esi
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x406a01
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 4
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x406a29
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 4
push esi
call fcn.0042194f
mov ecx, esi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
push esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x18]
push eax
lea eax, [ebx + 0x620]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 4
push ecx
push 0x43c7c0
push str.VarFileInfoTranslation
push ebp
call sub.VERSION.dll_VerQueryValueA
mov edx, dword [0x43c7c0]
lea edi, [esp + 0x21]
mov ax, word [edx]
mov word [0x43c7c4], ax
mov cx, word [edx + 2]
mov word [0x43c7c6], cx
mov ecx, 0x40
xor eax, eax
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x128]
xor ecx, ecx
mov cx, word [edx + 2]
push eax
xor eax, eax
push ecx
mov ax, word [edx]
lea ecx, [esp + 0x28]
push eax
push str.StringFileInfo_04x_04x_s
push 0x104
push ecx
call fcn.00406ba0
add esp, 0x18
lea esi, [ebx + 4]
lea edx, [esp + 0x14]
lea eax, [esp + 0x20]
push esi
push edx
push eax
push ebp
mov dword [esp + 0x24], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x406b18
mov esi, dword [esp + 0x1c]
mov ecx, 0x1e
mov edi, esi
push ebp
rep stosd dword es:[edi], eax
call fcn.0040f622
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 4
mov eax, dword [ebx + 0x72c]
test eax, eax
je 0x406b2b
push eax
call fcn.0040f622
add esp, 4
mov ecx, dword [esi]
push ecx
call fcn.0042194f
mov ecx, dword [esi]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x72c], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov esi, dword [esi]
cmp esi, 0x7fffffff
ja 0x406b81
mov edi, dword [esp + 0x14]
mov eax, dword [ebx + 0x72c]
test esi, esi
mov edx, esi
je 0x406b81
mov cl, byte [edi]
test cl, cl
je 0x406b79
mov byte [eax], cl
inc eax
inc edi
dec edx
jne 0x406b6a
jmp 0x406b7d
test edx, edx
jne 0x406b7e
dec eax
mov byte [eax], 0
push ebp
call fcn.0040f622
mov eax, dword [ebx + 0x72c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 4
Function at 0x406dd0
Capabilities:
Get file version info
Impersonate file version information

Disassembly:
sub esp, 8
push ebp
push esi
mov esi, ecx
mov dword [esp + 8], 0
lea ecx, [esp + 8]
lea eax, [esi + 0x620]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebp, eax
test ebp, ebp
je 0x406f35
push ebx
push edi
push ebp
call fcn.0042194f
mov ecx, ebp
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
push ebp
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x18]
lea edi, [esi + 0x620]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 4
push ecx
push 0x43c7c0
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [0x43c7c0]
push ebx
mov dx, word [eax]
mov word [0x43c7c4], dx
mov ax, word [eax + 2]
mov word [0x43c7c6], ax
call fcn.0040f622
add esp, 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov cx, word [0x43c7c4]
push 0
push 0
push ecx
mov edi, eax
push 1
push 0x10
push edi
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
mov ecx, 0x1e
xor eax, eax
lea edi, [esi + 8]
rep stosd dword es:[edi], eax
mov ecx, 0x1e
lea edi, [esi + 0x80]
rep stosd dword es:[edi], eax
mov ecx, 0x1e
lea edi, [esi + 0xf8]
rep stosd dword es:[edi], eax
mov ecx, 0x1e
lea edi, [esi + 0x170]
rep stosd dword es:[edi], eax
mov ecx, 0x1e
lea edi, [esi + 0x1e8]
rep stosd dword es:[edi], eax
mov ecx, 0x1e
lea edi, [esi + 0x260]
rep stosd dword es:[edi], eax
mov ecx, 0x1e
lea edi, [esi + 0x2d8]
rep stosd dword es:[edi], eax
mov ecx, 0x1e
lea edi, [esi + 0x350]
rep stosd dword es:[edi], eax
mov ecx, 0x1e
lea edi, [esi + 0x3c8]
rep stosd dword es:[edi], eax
mov ecx, 0x1e
lea edi, [esi + 0x440]
rep stosd dword es:[edi], eax
mov ecx, 0x1e
lea edi, [esi + 0x4b8]
rep stosd dword es:[edi], eax
mov ecx, 0x1e
lea edi, [esi + 0x530]
rep stosd dword es:[edi], eax
pop edi
pop ebx
pop esi
pop ebp
add esp, 8
ret

Function at 0x407a10
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, 0xfe
and eax, 0xff
push esi
cdq
idiv ecx
mov esi, dword [esp + 0xc]
inc dl
test esi, esi
jbe 0x407a3c
mov eax, dword [esp + 8]
mov cl, byte [eax]
xor cl, dl
add cl, dl
mov byte [eax], cl
inc eax
dec esi
jne 0x407a30
pop esi
ret 0xc

Function at 0x407b40
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
ret 0xc
Function at 0x407b60
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x100
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
mov edx, dword [esp + 0x10c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x110]
lea ecx, [esp + 4]
push eax
mov eax, dword [esp + 0x10c]
push 0x104
push ecx
push 0x43c5d8
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 4]
pop edi
add esp, 0x100
ret 0xc

Function at 0x408050
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [ecx + 0x1c]
push esi
mov esi, dword [ecx + 0x54]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0041e6ba
test eax, eax
je 0x40806b
mov eax, dword [eax + 0x1c]
push 5
push 0
push 0
push esi
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
pop esi
jg 0x408095
push 0
push 0
push 0x43ac3c
call fcn.004257c1
xor eax, eax
ret
mov eax, 1
ret

Function at 0x408730
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 4]
push ebx
cmp eax, 0xffffffff
push esi
je 0x4087d2
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4087d2
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x4087d2
mov al, byte [ecx + 0x54]
test al, al
je 0x4087d2
push ebp
push edi
push 0x1020
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, eax
xor ecx, ecx
push 0
push eax
mov dword [edx], ecx
push 0
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov ecx, ebx
lea edx, [eax + 0x1c]
mov ebp, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [eax + 0x18], edx
lea ecx, [eax + 0x14]
mov byte [eax + 0x101c], 1
lea eax, [esp + 0x24]
push eax
push 1
mov dword [ecx], ebx
push ecx
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
pop edi
cmp eax, 0xffffffff
pop ebp
jne 0x4087cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4087d2
pop esi
mov al, 1
pop ebx
ret 0xc
pop esi
xor al, al
pop ebx
ret 0xc
Function at 0x408840
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x54]
test al, al
je 0x4088e2
lea edi, [esi + 0x3c]
push edi
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 4]
mov edx, ecx
mov dword [esi + 0x34], ecx
cmp edx, eax
je 0x4088db
mov ebx, dword [sym.imp.WS2_32.dll_shutdown]
mov ebp, dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
cmp eax, ecx
je 0x4088ea
mov edi, dword [eax + 0xc]
mov ecx, dword [eax + 8]
push 1
push edi
mov dword [esp + 0x1c], ecx
call ebx
push edi
call ebp
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
cmp eax, ecx
je 0x4088c7
mov edi, dword [eax + 4]
mov edx, dword [eax]
mov ecx, edi
push eax
mov dword [edx + 4], ecx
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [edx], ecx
call fcn.00421978
mov eax, dword [esi + 0x38]
add esp, 4
dec eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
mov edx, dword [esi + 0x34]
mov eax, dword [edx + 4]
mov dword [esi + 0x34], eax
mov ecx, eax
cmp ecx, dword [esi + 0x30]
jne 0x40887d
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
lea edx, [esp + 0x10]
push 0x435f50
push edx
mov dword [esp + 0x18], str.DCLinkedList::Data:_invalid_reference
call fcn.0040fcd9
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x408910
Capabilities:
Get system information on windows
Terminate thread

Disassembly:
sub esp, 0x24
push esi
mov esi, ecx
mov al, byte [esi + 0x54]
test al, al
je 0x4089b1
lea eax, [esp + 4]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x1c]
xor edi, edi
lea edx, [ecx + ecx + 2]
test edx, edx
jbe 0x40895c
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
mov eax, dword [esi + 0xc]
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
call ebp
mov ecx, dword [esp + 0x20]
inc edi
lea edx, [ecx + ecx + 2]
cmp edi, edx
jb 0x408942
pop ebp
mov eax, dword [esi + 0x5c]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x5c]
push 0xa
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x58]
push 0
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov ecx, dword [esi + 0x58]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, esi
call fcn.00408840
lea edx, [esi + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [esi + 8], 0
mov byte [esi + 0x54], 0
pop edi
pop esi
add esp, 0x24
ret
Function at 0x409030
Capabilities:
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x42d3f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push esi
lea eax, [esp + 0xc]
mov dword [esp + 0x228], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [esp + 0x12]
mov edx, dword [esp + 0xe]
mov eax, dword [esp + 0xc]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x1c]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x1e]
push eax
mov eax, dword [esp + 0x20]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
push str._i_i_i_i_i_i
push 0x43c7cc
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
push str.C:1.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push str.C:1.txt
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x40910e
lea ecx, [esp + 0x230]
mov dword [esp + 0x228], eax
call fcn.00421c0e
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
add esp, 0x224
ret
push ebp
push edi
mov ebp, 0xa
lea ecx, [esp + 0x24]
push 0
push ecx
mov edi, 0x43c7cc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x43c7cc
call fcn.004011e0
add esp, 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
dec ebp
jne 0x409115
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebp
push 0
push 0x80
push 3
push 0
push 0
push closesocket
push str.C:1.txt
call ebx
lea edx, [esp + 0x10]
mov esi, eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [esp + 0x14], eax
call fcn.0042194f
mov ecx, dword [esp + 0x14]
add esp, 4
mov edi, eax
lea eax, [esp + 0x10]
push 0
push eax
push ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x238]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov ebx, eax
lea eax, [esp + 0x28]
push 0x43c7cc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x28]
push ecx
push 0x43c7cc
call fcn.004011e0
add esp, 4
lea edx, [esp + 0x12c]
push eax
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esp + 0x28]
push eax
push edi
push 0
push ecx
call fcn.004011e0
add esp, 4
lea edx, [esp + 0x134]
push eax
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
test eax, eax
jne 0x40920e
push esi
call ebp
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
push esi
call ebp
push str.C:1.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x238]
mov dword [esp + 0x230], 0xffffffff
call fcn.00421c0e
mov ecx, dword [esp + 0x228]
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x224
ret
Function at 0x4150ad
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x43bf78
cmp edx, dword [eax]
je 0x4150cf
add eax, 8
inc ecx
cmp eax, 0x43c008
jl 0x4150c0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x43bf78]
jne 0x4151fd
mov eax, dword [0x43ed70]
cmp eax, 1
je 0x4151d7
test eax, eax
jne 0x415100
cmp dword [0x43b894], 1
je 0x4151d7
cmp edx, 0xfc
je 0x4151fd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x415137
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004157d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004148c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41517a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004148c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x433bf8
push edi
call fcn.0040fac0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004157d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004157e0
lea eax, [ebp - 0xa0]
push 0x433bd8
push eax
call fcn.004157e0
push dword [esi + 0x43bf7c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004157e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041690b
add esp, 0x2c
pop edi
jmp 0x4151fd
lea eax, [ebp + 8]
lea esi, [esi + 0x43bf7c]
push 0
push eax
push dword [esi]
call fcn.004148c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x41ac80
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040f780
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41ad4b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41ad4b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41acfe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41ad09
or bh, 8
and edi, 0x8000000
je 0x41ad24
mov eax, dword [0x44051c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41ad4b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret