joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a930
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044aa80
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44a950
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.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x44a931
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044aa80
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44a950
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.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x44a980
Capabilities:
Resolve dns

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.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x44a9d7
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x44a9ed
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.0044aa10
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x44aa10
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.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x44aaa0
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.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x44aae9
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 0x44af60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46d740
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.0044ab10
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044ab90
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044ab90
lea ecx, [esi + 0xc]
call fcn.0045f1c6
lea ecx, [esi + 0x10]
call fcn.0045f1c6
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044d3c0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044d3c0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044d3c0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0045f23b
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0045f23b
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x44bc08
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46d968
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 0x44bc18
call fcn.0044c130
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x44bcfb
cmp byte [edi], 0
je 0x44bcfb
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x44bc3d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0044a930
test eax, eax
jne 0x44bc5d
push 0x48e460
lea ecx, [esi + 0x38]
call fcn.0045f378
jmp 0x44bcfb
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0044a980
test eax, eax
jne 0x44bc8c
mov ecx, esi
call fcn.0044aa80
push edi
add esi, 0x38
push 0x48e43c
push esi
call fcn.0045d1d7
add esp, 0xc
jmp 0x44bcfb
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0044c9b0
test eax, eax
je 0x44bcf4
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.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.0044bdd0
test eax, eax
jne 0x44bd10
push edi
lea eax, [esi + 0x38]
push 0x48e418
push eax
call fcn.0045d1d7
add esp, 0xc
mov ecx, esi
call fcn.0044c130
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 0x44bdb8
mov ecx, dword [0x48e6d0]
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.0045d1d7
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.0044aa30
test eax, eax
jne 0x44bd7a
push 0x48e3fc
lea ecx, [esi + 0x38]
call fcn.0045f378
jmp 0x44bd8a
push 0xfa
mov ecx, esi
call fcn.0044c9b0
test eax, eax
jne 0x44bda7
mov ecx, esi
call fcn.0044c130
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0045f23b
jmp 0x44bcfb
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0045f23b
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x4615df
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x461617
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045f696
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045f66e
jmp 0x461623
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x462ccd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x462d0f
call fcn.0046884e
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x462d0f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x462d06
xor eax, eax
jmp 0x462d17
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00462d1d
pop edi
pop esi
pop ebx
ret 4

Function at 0x468d7e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x468dac
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x468dca
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00468ce4
jmp 0x468dca
mov eax, dword [esi + 0x14]
test eax, eax
je 0x468dca
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00468ce4
test edi, edi
mov eax, edi
jne 0x468db4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401087
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
and dword [ebp - 4], 0
push esi
push edi
push 1
pop ebx
mov edx, ebx
mov ecx, ebx
call fcn.004012b6
cmp byte [0x4033e6], 0
mov edi, dword [sym.imp.MSVCRT.dll__access]
jne 0x4010ec
mov esi, 0x4033e6
mov ecx, str.VisualFoxProRuntime.6
mov edx, esi
call fcn.0040117e
test eax, eax
je 0x4010ec
push 0
push esi
mov dword [ebp - 4], ebx
call edi
pop ecx
test eax, eax
pop ecx
je 0x4010ec
and byte [0x4033e6], 0
mov edx, ebx
mov ecx, ebx
mov dword [ebp - 4], 2
call fcn.004012b6
cmp dword [ebp - 4], 2
je 0x401179
cmp byte [0x4033e6], 0
jne 0x401179
lea eax, [ebp - 0x11c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x401167
add eax, 0xc
cmp eax, 0x105
jg 0x401167
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x11c]
push 0x403014
push eax
call esi
mov ecx, ebx
call fcn.0040128f
push eax
lea eax, [ebp - 0x11c]
push eax
call esi
lea eax, [ebp - 0x11c]
push 0
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x401167
lea eax, [ebp - 0x11c]
push eax
push 0x4033e6
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [0x4033e6], 0
jne 0x401179
mov edx, ebx
mov ecx, ebx
call fcn.004012b6
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40117e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
lea eax, [ebp - 4]
push edi
push eax
push 0
mov dword [ebp - 0xc], edx
mov esi, ecx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4011f4
lea eax, [ebp - 0x110]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x110]
push str.ShellOpenCommand
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x105
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4011fb
xor eax, eax
jmp 0x40128b
cmp byte [ebp - 0x210], 0
mov edi, dword [sym.imp.MSVCRT.dll__isctype]
lea esi, [ebp - 0x210]
je 0x401241
mov eax, dword [sym.imp.MSVCRT.dll___mb_cur_max]
cmp dword [eax], 1
jle 0x401226
movsx eax, byte [esi]
push 8
push eax
call edi
pop ecx
pop ecx
jmp 0x401237
mov ecx, dword [sym.imp.MSVCRT.dll__pctype]
movsx eax, byte [esi]
mov ecx, dword [ecx]
mov al, byte [ecx + eax*2]
and eax, 8
test eax, eax
je 0x401241
inc esi
cmp byte [esi], 0
jne 0x401210
mov dword [ebp - 8], esi
mov al, byte [esi]
test al, al
je 0x401279
mov ecx, dword [sym.imp.MSVCRT.dll___mb_cur_max]
cmp dword [ecx], 1
jle 0x401261
movsx eax, al
push 8
push eax
call edi
pop ecx
pop ecx
jmp 0x401272
mov ecx, dword [sym.imp.MSVCRT.dll__pctype]
movsx eax, al
mov ecx, dword [ecx]
mov al, byte [ecx + eax*2]
and eax, 8
test eax, eax
jne 0x401279
inc esi
jmp 0x401244
push dword [ebp - 8]
and byte [esi], 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x4012b6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
imul ecx, ecx, 0x106
cmp byte [ecx + 0x4032e0], 0
push ebx
lea ebx, [ecx + 0x4032e0]
push esi
push edi
mov dword [ebp - 4], edx
jne 0x401373
mov esi, 0x4031c0
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll__mbsrchr]
mov edi, eax
pop ecx
test edi, edi
pop ecx
jne 0x401308
lea eax, [ebp - 0x11c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
jmp 0x40132a
mov eax, edi
sub eax, esi
push eax
lea eax, [ebp - 0x11c]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__mbsncpy]
lea eax, [ebp - 0x11c]
add esp, 0xc
sub eax, esi
and byte [eax + edi], 0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x11c]
push 0x403014
push eax
call esi
mov ecx, dword [ebp - 4]
call fcn.0040128f
push eax
lea eax, [ebp - 0x11c]
push eax
call esi
lea eax, [ebp - 0x11c]
push 0
push eax
call dword [sym.imp.MSVCRT.dll__access]
pop ecx
test eax, eax
pop ecx
jne 0x401373
lea eax, [ebp - 0x11c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401740
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4020b8
push 0x401940
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x4034ec], 0xffffffff
mov dword [0x4034f0], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4031a4]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x4031a0]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x4034f4], ecx
call fcn.00401930
mov eax, dword [0x403080]
test eax, eax
jne 0x4017d1
push 0x401920
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00401900
push 0x40300c
push 0x403008
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x40319c]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x403198]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x403004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x4018df
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x401845
cmp al, 0x22
jne 0x401837
cmp byte [esi], 0x22
jne 0x40184e
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x40185e
cmp al, 0x20
ja 0x40185e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x40184e
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40187f
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x401884
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x4018c4
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x40184e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x4018df
Function at 0x401460
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x210
mov eax, dword [0x42a8c0]
xor eax, esp
mov dword [esp + 0x20c], eax
push edi
push 0x102
lea eax, [esp + 0x112]
push 0
push eax
mov word [esp + 0x118], 0
call fcn.004109f0
push 0x102
lea ecx, [esp + 0x1a]
push 0
push ecx
mov word [esp + 0x20], 0
call fcn.004109f0
add esp, 0x18
lea edi, [esp + 0x10c]
call fcn.00401340
test eax, eax
pop edi
je 0x401515
mov eax, dword [0x42cd0c]
sub eax, 1
push str.udisktools.dll
je 0x4014fb
sub eax, 1
je 0x4014e7
lea edx, [esp + 0x10c]
push edx
push str._s_s
lea eax, [esp + 0x10]
push eax
jmp 0x40150d
lea ecx, [esp + 0x10c]
push ecx
push str._s_s
lea edx, [esp + 0x10]
push edx
jmp 0x40150d
lea eax, [esp + 0x10c]
push eax
push str._sdriver_s
lea ecx, [esp + 0x10]
push ecx
call fcn.004116cc
add esp, 0x10
lea eax, [esp + 4]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401520
sub eax, edx
je 0x40153c
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x401553
push str.udisktools.dll
lea eax, [esp + 8]
push 0x427cac
push eax
call fcn.004116cc
add esp, 0xc
cmp dword [0x42cd08], 0
jne 0x40158c
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x42cd08], eax
jne 0x40159b
call fcn.0040fba0
push eax
push str.LoadLibrary_error:_s_n
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040ecb0
add esp, 0xc
jmp 0x40159b
push str.UDisk_DLL_already_load_n
push 0
call fcn.0040ecb0
add esp, 8
mov ecx, dword [esp + 0x20c]
xor eax, eax
cmp dword [0x42cd08], eax
setne al
xor ecx, esp
call fcn.00410c90
add esp, 0x210
ret

Function at 0x4022fb
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x40234e
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov ebx, ecx
jne 0x402364
push 0x80004005
call fcn.00401657
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x402367
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8
Function at 0x402844
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x42a8c0]
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [ebp + 0xa0]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
call fcn.004022c6
mov edi, eax
cmp edi, esi
je 0x4028ac
lea ecx, [ebp - 0x70]
call fcn.00402261
mov eax, edi
mov ecx, dword [ebp + 0x94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410c90
add ebp, 0x98
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x4028c4
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.00402844
cmp eax, esi
jne 0x4028f7
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
je 0x4028b4
lea ecx, [ebp - 0x70]
call fcn.00402261
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00402261
mov eax, esi
jmp 0x402892
Function at 0x40455c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x42a8c0]
xor eax, ebp
mov dword [ebp + 0x3a0], eax
mov eax, dword [ebp + 0x3b0]
push ebx
push esi
mov esi, dword [ebp + 0x3ac]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x3b4]
push edi
mov edi, ecx
mov dword [ebp - 0x74], eax
call dword [0x42a820]
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x64], ebx
je 0x404606
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x70]
push eax
call fcn.004015bb
add esp, 0xc
test eax, eax
jl 0x404606
mov edi, dword [ebp - 0x70]
cmp edi, 0x400
jg 0x4045ee
push edi
call fcn.00401cb1
test al, al
pop ecx
je 0x4045ee
mov eax, edi
call fcn.004111f0
mov eax, esp
jmp 0x4045f7
push edi
lea ecx, [ebp - 0x6c]
call fcn.00401f58
push dword [ebp - 0x78]
push edi
push esi
push eax
call fcn.0040161f
cmp eax, ebx
jne 0x404643
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x64], eax
je 0x404616
lea ecx, [ebp - 0x64]
call fcn.0040281a
lea ecx, [ebp - 0x6c]
call fcn.00401af1
mov eax, 0x8007000e
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
call fcn.00410c90
add ebp, 0x3a4
leave
ret 0x10
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
jne 0x40465f
call fcn.00402186
mov esi, eax
jmp 0x404705
push dword [ebp - 0x74]
push dword [ebp - 0x68]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x40467c
call fcn.00402186
jmp 0x4046fc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x68], eax
je 0x404672
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x4046c0
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x64], eax
je 0x4046ac
lea ecx, [ebp - 0x64]
call fcn.0040281a
mov esi, 0x8007000e
lea ecx, [ebp - 0x6c]
call fcn.00401af1
mov eax, esi
jmp 0x404623
push eax
lea ecx, [ebp - 0x64]
call fcn.00402eec
cmp dword [ebp - 0x64], ebx
jne 0x4046d5
mov esi, 0x8007000e
jmp 0x4046fe
push esi
push dword [ebp - 0x68]
push esi
push dword [ebp - 0x64]
call fcn.00402148
mov eax, dword [ebp - 0x64]
add esp, 0x10
push dword [ebp + 0x3b8]
mov byte [eax + esi], bl
push dword [ebp - 0x64]
lea ecx, [ebp - 0x80]
call fcn.0040429d
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x64], eax
je 0x4046b1
lea ecx, [ebp - 0x64]
call fcn.0040281a
jmp 0x4046b1
Function at 0x405dbc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
push ebx
mov ebx, ecx
call fcn.004012f0
test al, al
je 0x405e38
cmp al, 0x5a
mov byte [ebp - 8], al
jge 0x405e38
push esi
push edi
mov al, byte [ebp - 8]
mov esi, 0x4238f4
lea edi, [ebp - 4]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov byte [ebp - 4], al
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x405e27
push 0
push dword [ebp - 8]
call fcn.004010c0
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x405e20
push 0
push dword [ebp - 8]
mov ecx, ebx
call fcn.00405b7b
push esi
call fcn.00401160
pop ecx
mov dword [ebp - 0xc], 1
inc byte [ebp - 8]
cmp byte [ebp - 8], 0x5a
jl 0x405ddb
cmp dword [ebp - 0xc], 0
pop edi
pop esi
jne 0x405e5d
push 0x3eb
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x4238d0
mov ecx, ebx
call fcn.0040559c
jmp 0x405e74
push 0x3eb
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
pop ebx
leave
ret

Function at 0x40721c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x14
call fcn.00410760
push dword [ebp + 8]
mov esi, eax
call fcn.0042234f
push dword [ebp + 0xc]
mov dword [esi], eax
call fcn.0042234f
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0xc], eax
xor eax, eax
push eax
push eax
push esi
push 0x406f8b
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
pop ebp
ret
Function at 0x40a230
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, ecx
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
imul ecx, eax
test ebp, ebp
push edi
mov dword [esi + 8], ecx
jne 0x40a250
mov ebp, edx
mov ecx, dword [esi + 4]
xor edi, edi
test cl, cl
jns 0x40a2c8
test edx, edx
jne 0x40a289
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004102b0
mov edi, eax
mov eax, dword [esi + 0x24]
add eax, eax
push eax
push ebp
push edi
call fcn.004118f0
add esp, 0x10
mov edx, edi
mov ebp, edi
mov eax, dword [esi + 0x24]
test eax, eax
je 0x40a2a4
movzx ecx, word [edx + eax*2 - 2]
sub eax, 1
rol cx, 8
test eax, eax
mov word [edx + eax*2], cx
jne 0x40a290
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
lea ecx, [esi + 0x28]
push ecx
mov dword [eax], str.endian_swap
call fcn.0040d0c0
add esp, 0x18
mov edx, dword [esi]
mov eax, dword [esi + 8]
push edx
push 1
push eax
push ebp
call fcn.00412fb3
add esp, 0x10
cmp eax, 1
sete bl
test edi, edi
je 0x40a2ed
push edi
call fcn.0041129f
add esp, 4
test bl, bl
je 0x40a334
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x24]
cdq
add dword [esi + 0x18], eax
push 0xffffffffffffffff
push ecx
adc dword [esi + 0x1c], edx
cmp dword [esi + 0x5c], 0x10
push 0x18
push ecx
mov ecx, esp
jb 0x40a311
mov eax, dword [esi + 0x48]
jmp 0x40a314
lea eax, [esi + 0x48]
push ecx
mov dword [ecx], eax
mov eax, esp
add esi, 0x28
push esi
mov dword [eax], str.write
call fcn.0040d0c0
add esp, 0x18
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov ecx, esi
call fcn.0040a070
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 8