joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c69d
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x42a43c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.Th_5d_:
mov esi, 0x1ff
lea eax, [ebp - 0x204]
push esi
push eax
call fcn.0040e079
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 8]
sub esi, eax
lea eax, [ebp + eax - 0x204]
push esi
push eax
call fcn.0040e1eb
add esp, 0x20
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040e208
leave
ret

Function at 0x40c8fc
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc eax
and ecx, 0x10
neg eax
sbb eax, eax
and eax, ecx
ret

Function at 0x40c913
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x374
mov eax, dword [0x42a43c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x104
push eax
lea eax, [ebp - 0x11c]
push eax
mov byte [ebp - 0x19], 0
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push str..
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x35c]
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40ca1a
test byte [ebp - 0x35c], 0x10
jne 0x40ca04
lea eax, [ebp - 0x364]
push eax
lea eax, [ebp - 0x358]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0x374]
push eax
lea eax, [ebp - 0x364]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push 9
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x374]
push eax
push 1
push 0x800
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
push dword [ebp - 0x33c]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x21c]
push str._s_t_s_t_d
push eax
mov byte [ebp - 8], 0
mov byte [ebp - 0x2f2], 0
call dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x21c]
push eax
call esi
add esp, 0x1c
lea eax, [ebp - 0x35c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40c976
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040e208
leave
ret

Function at 0x40ca2f
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
call sub.WS2_32.dll_inet_addr
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40ca65
push dword [ebp + 8]
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x40ca65
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 4]
push eax
call fcn.0040e730
add esp, 0xc
mov eax, dword [ebp - 4]
leave
ret
Function at 0x40ca6a
Capabilities:
Create tcp socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42a43c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x18], 0x10
test eax, eax
je 0x40caa3
push 0x42a2e0
push eax
call sub.WS2_32.dll_getservbyname
test eax, eax
je 0x40caa3
mov ax, word [eax + 8]
jmp 0x40caac
movzx eax, word [ebx]
push eax
call sub.WS2_32.dll_htons
push 6
push 1
push 2
mov word [ebp - 0x12], ax
call sub.WS2_32.dll_socket
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x40cac8
mov eax, edi
jmp 0x40cb26
and dword [ebp - 0x10], 0
push 2
pop eax
push dword [ebp - 0x18]
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x14]
push eax
push esi
call sub.WS2_32.dll_bind
cmp eax, edi
jne 0x40cafb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov ebx, eax
call sub.WS2_32.dll_closesocket
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40cac4
push 1
push esi
call sub.WS2_32.dll_listen
cmp eax, edi
je 0x40cae4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call sub.WS2_32.dll_getsockname
test eax, eax
jne 0x40cb24
push dword [ebp - 0x12]
call sub.WS2_32.dll_htons
mov word [ebx], ax
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e208
leave
ret

Function at 0x40cb35
Capabilities:
Download and write a file
Get socket status
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push edi
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
jne 0x40cb4e
or eax, edi
jmp 0x40cbe7
mov eax, dword [ebp + 0x14]
push esi
xor esi, esi
mov dword [ebp - 0x108], edi
mov dword [ebp - 0x10c], 1
cmp eax, esi
je 0x40cb7b
mov dword [ebp - 4], esi
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40cb76
mov dword [ebp - 8], esi
lea eax, [ebp - 8]
jmp 0x40cb7d
xor eax, eax
push eax
push esi
push esi
lea eax, [ebp - 0x10c]
push eax
lea eax, [edi + 1]
push eax
call sub.WS2_32.dll_select
cmp eax, esi
jge 0x40cb99
or eax, 0xffffffff
jmp 0x40cbe6
jne 0x40cba0
push 0xfffffffffffffffe
pop eax
jmp 0x40cbe6
cmp dword [ebp + 0xc], esi
je 0x40cbe3
cmp dword [ebp + 0x10], esi
je 0x40cbe3
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call sub.WS2_32.dll_recv
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
je 0x40cbe6
cmp edi, esi
je 0x40cbdf
cmp dword [ebp + 0x18], eax
je 0x40cbdb
push esi
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, edi
jmp 0x40cbe6
xor eax, eax
jmp 0x40cbe6
xor eax, eax
inc eax
pop esi
pop edi
leave
ret
Function at 0x40cbea
Capabilities:
Send data
Send data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
or eax, 0xffffffff
cmp dword [ebp + 8], eax
je 0x40cc46
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
je 0x40cc15
push 0
lea eax, [ebp - 4]
push eax
push edi
push ebx
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
xor esi, esi
inc eax
test edi, edi
jbe 0x40cc3b
test eax, eax
jle 0x40cc3b
push 0
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [ebp + 8]
call sub.WS2_32.dll_send
add esi, eax
cmp esi, edi
jb 0x40cc1e
cmp esi, edi
sbb eax, eax
pop edi
and eax, 0xfffffffe
pop esi
inc eax
pop ebx
leave
ret

Function at 0x40cc48
Capabilities:
Send data
Send data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov edi, dword [ebp + 0x10]
push edi
call sub.WS2_32.dll_htons
movzx eax, ax
mov dword [ebp - 4], eax
or eax, 0xffffffff
cmp dword [ebp + 8], eax
je 0x40cccc
cmp edi, 0x7fff
jbe 0x40cc72
push 0xfffffffffffffff7
pop eax
jmp 0x40cccc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
cmp dword [ebp + 0x14], eax
je 0x40cc8d
push 0
lea eax, [ebp - 8]
push eax
push edi
push ebx
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
push esi
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.WS2_32.dll_send
xor eax, eax
inc eax
test edi, edi
jbe 0x40ccc2
test eax, eax
jle 0x40ccc2
push 0
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [ebp + 8]
call sub.WS2_32.dll_send
add esi, eax
cmp esi, edi
jb 0x40cca5
cmp esi, edi
sbb eax, eax
and eax, 0xfffffffe
pop esi
inc eax
pop ebx
pop edi
leave
ret

Function at 0x40cd4d
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x42a43c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test eax, eax
je 0x40cd7d
push 0x42a2e4
push eax
call sub.WS2_32.dll_getservbyname
test eax, eax
je 0x40cd7d
mov ax, word [eax + 8]
jmp 0x40cd85
push dword [ebp + 0x10]
call sub.WS2_32.dll_htons
push esi
mov word [ebp - 0x12], ax
call fcn.0040ca2f
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x40cdc4
push 2
pop eax
push 0
push 1
push eax
mov word [ebp - 0x14], ax
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
je 0x40cdc4
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call sub.WS2_32.dll_connect
test eax, eax
jne 0x40cdc4
mov eax, esi
jmp 0x40cdc7
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040e208
leave
ret
Function at 0x40ce00
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x42a43c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x204], eax
jne 0x40ce2d
mov eax, 0x42a2e8
jmp 0x40ce3d
cmp dword [ebp + 0xc], 2
mov eax, str.DELETE
je 0x40ce3d
mov eax, str.OTHER
push ebx
mov ebx, dword [ebp + 0x14]
push ebx
push edi
push eax
push dword [ebp + 0xc]
push str.TrayMessage_Call_:_msg__d___s___wnd__d__id__d_n
call fcn.0040c69d
push 0x1fc
lea eax, [ebp - 0x200]
push 0
push eax
call fcn.0040ed20
add esp, 0x20
cmp dword [ebp + 0xc], 2
mov dword [ebp - 0x1f8], ebx
mov dword [ebp - 0x200], 0x1fc
mov dword [ebp - 0x1fc], edi
pop ebx
je 0x40ceb3
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1f0], eax
mov eax, dword [ebp - 0x204]
mov dword [ebp - 0x1ec], eax
push 0x7f
lea eax, [ebp - 0x1e8]
push eax
push edi
mov dword [ebp - 0x1f4], 7
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x200]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
pop edi
test eax, eax
jne 0x40cee2
call fcn.0040c636
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.error__d_in_Shell_NotifyIcon___s__n
call fcn.0040c69d
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e208
leave
ret

Function at 0x40d0ca
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
xor esi, esi
push esi
push esi
push 0x18b
push dword [esp + 0x28]
call edi
mov ebp, eax
xor ebx, ebx
test ebp, ebp
jle 0x40d102
push 0
push esi
push 0x18a
push dword [esp + 0x28]
call edi
add ebx, eax
inc esi
cmp esi, ebp
jl 0x40d0ed
lea ebx, [ebx + ebp*2 + 1]
push ebx
mov dword [esp + 0x18], ebx
call fcn.0040e5cc
pop ecx
mov dword [esp + 0x10], eax
test eax, eax
jne 0x40d123
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
jmp 0x40d17f
xor ebx, ebx
mov esi, eax
test ebp, ebp
jle 0x40d16b
mov ecx, dword [esp + 0x14]
add eax, ecx
mov dword [esp + 0x14], eax
push 0
push ebx
push 0x18a
push dword [esp + 0x28]
call edi
add eax, esi
cmp eax, dword [esp + 0x14]
jae 0x40d167
push esi
push ebx
push 0x189
push dword [esp + 0x28]
call edi
add esi, eax
mov byte [esi], 0xd
inc esi
mov byte [esi], 0xa
inc esi
inc ebx
cmp ebx, ebp
jl 0x40d135
mov eax, dword [esp + 0x10]
push eax
mov byte [esi], 0
call fcn.0040cfba
push dword [esp + 0x14]
call fcn.0040e696
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x40d558
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ebx, ebx
xor ecx, ecx
cmp dword [ebp + 8], ebx
mov dword [ebp - 4], eax
jle 0x40d585
mov eax, ebx
cdq
idiv dword [ebp - 4]
add ebx, 0xd
mov al, byte [edx + esi]
xor byte [ecx + edi], al
inc ecx
cmp ecx, dword [ebp + 8]
jl 0x40d570
mov eax, edi
pop ebx
leave
ret
Function at 0x40d689
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x40df19
Capabilities:
Create udp socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x42a43c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push 0x11
push 2
push 2
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 1
call sub.WS2_32.dll_socket
mov esi, eax
or eax, 0xffffffff
cmp esi, eax
je 0x40dfcc
push 4
lea eax, [ebp - 0x1c]
push eax
push 4
push 0xffff
push esi
call sub.WS2_32.dll_setsockopt
test eax, eax
mov eax, str.UdpSend:_Port__d_may_be_reused
je 0x40df70
mov eax, str.setsockopt_error
push edi
push dword [ebp + 8]
push eax
call fcn.0040c69d
pop ecx
pop ecx
push 2
pop eax
push 0
mov word [ebp - 0x14], ax
call sub.WS2_32.dll_htonl
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
call sub.WS2_32.dll_htons
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call sub.WS2_32.dll_bind
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.UdpSend_bind_returns__d__error__d_
call fcn.0040c69d
add esp, 0xc
test edi, edi
jge 0x40dfda
push 0xfffffffffffffff8
pop edi
push esi
call sub.WS2_32.dll_closesocket
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e208
leave
ret
push 0x10
push ebx
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x18]
push esi
call sub.WS2_32.dll_sendto
mov edi, eax
push edi
push str.sendto_returns__d
call fcn.0040c69d
pop ecx
pop ecx
jmp 0x40dfc3

Function at 0x40e208
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a43c]
jne 0x40e212
repz ret
jmp fcn.00412ee2
Function at 0x418cd7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004146da
and dword [ebp - 4], 0
cmp dword [0x43f5a8], 0
mov ebx, eax
jne 0x418d88
push 0x426078
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x418e39
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push edi
call esi
test eax, eax
je 0x418e39
push eax
call fcn.00414668
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43f5a8], eax
call esi
push eax
call fcn.00414668
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43f5ac], eax
call esi
push eax
call fcn.00414668
mov dword [esp], str.GetUserObjectInformationW
push edi
mov dword [0x43f5b0], eax
call esi
push eax
call fcn.00414668
pop ecx
mov dword [0x43f5b8], eax
test eax, eax
je 0x418d88
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00414668
pop ecx
mov dword [0x43f5b4], eax
mov eax, dword [0x43f5b4]
cmp eax, ebx
je 0x418de0
cmp dword [0x43f5b8], ebx
je 0x418de0
push eax
call fcn.004146e3
push dword [0x43f5b8]
mov esi, eax
call fcn.004146e3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x418de0
test edi, edi
je 0x418de0
call esi
test eax, eax
je 0x418dd7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x418dd7
test byte [ebp - 0xc], 1
jne 0x418de0
or dword [ebp + 0x10], 0x200000
jmp 0x418e19
mov eax, dword [0x43f5ac]
cmp eax, ebx
je 0x418e19
push eax
call fcn.004146e3
pop ecx
test eax, eax
je 0x418e19
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x418e19
mov eax, dword [0x43f5b0]
cmp eax, ebx
je 0x418e19
push eax
call fcn.004146e3
pop ecx
test eax, eax
je 0x418e19
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43f5a8]
call fcn.004146e3
pop ecx
test eax, eax
je 0x418e39
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x418e3b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41c762
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004146da
and dword [ebp - 4], 0
cmp dword [0x43f728], 0
mov ebx, eax
jne 0x41c813
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41c8c4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4264a8
push edi
call esi
test eax, eax
je 0x41c8c4
push eax
call fcn.00414668
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43f728], eax
call esi
push eax
call fcn.00414668
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43f72c], eax
call esi
push eax
call fcn.00414668
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43f730], eax
call esi
push eax
call fcn.00414668
pop ecx
mov dword [0x43f738], eax
test eax, eax
je 0x41c813
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00414668
pop ecx
mov dword [0x43f734], eax
mov eax, dword [0x43f734]
cmp eax, ebx
je 0x41c86b
cmp dword [0x43f738], ebx
je 0x41c86b
push eax
call fcn.004146e3
push dword [0x43f738]
mov esi, eax
call fcn.004146e3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41c86b
test edi, edi
je 0x41c86b
call esi
test eax, eax
je 0x41c862
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41c862
test byte [ebp - 0xc], 1
jne 0x41c86b
or dword [ebp + 0x10], 0x200000
jmp 0x41c8a4
mov eax, dword [0x43f72c]
cmp eax, ebx
je 0x41c8a4
push eax
call fcn.004146e3
pop ecx
test eax, eax
je 0x41c8a4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41c8a4
mov eax, dword [0x43f730]
cmp eax, ebx
je 0x41c8a4
push eax
call fcn.004146e3
pop ecx
test eax, eax
je 0x41c8a4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43f728]
call fcn.004146e3
pop ecx
test eax, eax
je 0x41c8c4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41c8c6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4011cb
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42101c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x421028
push 0x421024
push 0x421020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x421028]
push dword [0x421024]
push dword [0x421020]
mov dword [0x421014], esp
call fcn.00411b14
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x407e88
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
push edi
push dword [0x41fef4]
call fcn.0041168d
push edi
call sub.CRTDLL.DLL__mkdir
add esp, 0xc
pop edi
pop ebp
ret

Function at 0x408629
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push dword [0x41fab0]
call sub.CRTDLL.DLL_fclose
pop ecx
cmp dword [0x413228], 0
jne 0x40872f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00408527
add esp, 0xc
mov esi, eax
push 0
push pe_nt_image_headers32
push 3
push 0
push 2
push 0x40000000
push 0x41fac8
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
mov eax, dword [0x4139c4]
mov ecx, dword [eax + 0x14]
and ecx, 0x7f
test ecx, 0xffffffdf
je 0x4086a7
mov eax, dword [eax + 0x14]
and eax, 0x7f
push eax
push 0x41fac8
call sub.KERNEL32.DLL_SetFileAttributesA
or eax, eax
jne 0x4086a7
cmp dword [0x41fa04], 0
je 0x4086dc
movzx eax, word [0x41fa26]
push eax
push dword [0x41fa04]
push 0x41fac8
call fcn.00407fdb
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp eax, 0x4f
jne 0x4086dc
cmp dword [0x41324c], 0
je 0x4086dc
cmp edi, 0xffffffff
je 0x40872f
or esi, esi
je 0x408729
test si, 1
je 0x4086f1
lea ebx, [ebp - 8]
jmp 0x4086f3
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
test si, 2
je 0x408702
lea ebx, [ebp - 0x10]
jmp 0x408704
xor ebx, ebx
mov dword [ebp - 0x20], ebx
test si, 4
je 0x408713
lea ebx, [ebp - 0x18]
jmp 0x408715
xor ebx, ebx
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push ebx
push edi
call sub.KERNEL32.DLL_SetFileTime
or eax, eax
jne 0x408729
push edi
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408734
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov eax, dword [ebp + 8]
add eax, 0x40
mov byte [ebp - 4], al
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x2f
mov byte [ebp - 1], 0
lea eax, [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
sete al
and eax, 1
pop edi
leave
ret
Function at 0x40b622
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x308
push ebx
push esi
push edi
push 0x12d
push dword [ebp + 8]
call sub.USER32.DLL_GetDlgItem
mov dword [ebp - 0x308], eax
push 0x12e
push dword [ebp + 8]
call sub.USER32.DLL_GetDlgItem
mov ebx, eax
push 0
push 0
push 0x18b
push ebx
call sub.USER32.DLL_SendMessageA
mov esi, eax
xor edi, edi
jmp 0x40b705
lea eax, [ebp - 0x304]
push eax
push edi
push 0x189
push ebx
call sub.USER32.DLL_SendMessageA
lea eax, [ebp - 0x304]
push eax
push 0xffffffffffffffff
push 0x18f
push dword [ebp - 0x308]
call sub.USER32.DLL_SendMessageA
cmp eax, 0xffffffff
jne 0x40b704
lea ecx, [0x41ff04]
or eax, 0xffffffff
inc eax
cmp byte [ecx + eax], 0
jne 0x40b6a2
cmp byte [eax + 0x41ff03], 0x5c
je 0x40b6c7
push 0x4214e4
lea eax, [ebp - 0x304]
push eax
call fcn.004110f2
add esp, 8
push 0x41ff04
lea eax, [ebp - 0x304]
push eax
call fcn.004110f2
lea eax, [ebp - 0x304]
push eax
call fcn.004111db
push 0x180
lea eax, [ebp - 0x304]
push eax
call sub.CRTDLL.DLL__chmod
lea eax, [ebp - 0x304]
push eax
call sub.CRTDLL.DLL_remove
add esp, 0x18
inc edi
cmp edi, esi
jl 0x40b668
push dword [0x41fef4]
call fcn.00411901
pop ecx
mov esi, eax
mov edi, esi
jmp 0x40b760
push 0x304
lea eax, [ebp - 0x304]
push eax
mov eax, edi
dec eax
push eax
push dword [0x41fef4]
call fcn.00411874
add esp, 0x10
or eax, eax
jle 0x40b75f
lea eax, [ebp - 0x304]
push eax
call fcn.004111db
add esp, 4
lea eax, [ebp - 0x304]
push eax
call sub.CRTDLL.DLL__rmdir
add esp, 4
dec edi
or edi, edi
jg 0x40b71f
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ba73
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x124]
mov dword [ebp - 0x18], eax
mov eax, dword [0x4131a4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 4
lea eax, [0x40b7ee]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0x65
push edi
call sub.USER32.DLL_GetDlgItem
push 0x100
push 0x420340
push eax
call sub.USER32.DLL_GetWindowTextA
lea eax, [ebp - 0x20]
push eax
call sub.SHELL32.DLL_SHBrowseForFolder
mov dword [ebp - 0x128], eax
or eax, eax
je 0x40bbec
cmp dword [0x420330], 0
je 0x40bb1d
mov dword [0x420330], 0
push 0
push 0x40bbf2
push edi
push str.DLGNEW
push dword [0x41fee8]
call sub.USER32.DLL_DialogBoxParamA
or eax, eax
jne 0x40bb1d
jmp 0x40bbee
push 0x420340
lea eax, [ebp - 0x124]
push eax
call fcn.00411b78
lea ecx, [ebp - 0x124]
or eax, 0xffffffff
inc eax
cmp byte [ecx + eax], 0
jne 0x40bb37
cmp byte [ebp + eax - 0x125], 0x5c
je 0x40bb5c
push 0x4215ec
lea eax, [ebp - 0x124]
push eax
call sub.CRTDLL.DLL_strcat
add esp, 8
push 0x4215e1
lea eax, [ebp - 0x124]
push eax
call sub.CRTDLL.DLL_strcat
push 0x4215e0
lea eax, [ebp - 0x22c]
push eax
call fcn.00411b78
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x124]
push eax
call sub.CRTDLL.DLL__findfirst
push 0x4215e0
lea eax, [ebp - 0x22c]
push eax
call sub.CRTDLL.DLL_strcmp
add esp, 0x18
or eax, eax
jne 0x40bbc0
push 0x5c
lea eax, [ebp - 0x124]
push eax
call sub.CRTDLL.DLL_strrchr
add esp, 8
mov byte [eax + 1], 0
jmp 0x40bbd2
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x128]
call sub.SHELL32.DLL_SHGetPathFromIDListA
push 0x65
push edi
call sub.USER32.DLL_GetDlgItem
lea esi, [ebp - 0x124]
push esi
push eax
call sub.USER32.DLL_SetWindowTextA
xor eax, eax
inc eax
jmp 0x40bbee
xor eax, eax
pop edi
pop esi
leave
ret