joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4613ac
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4613c3
add esp, 0xfffffff0
call fcn.00403ea4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00420980
mov eax, dword [0x4bb4cc]
cmp word [eax + 2], 0
jne 0x4613eb
mov eax, dword [0x4bb4cc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00462f04
mov eax, dword [0x4bb618]
cmp word [eax + 2], 0
jne 0x461405
mov eax, dword [0x4bb618]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00463110
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x416e90]
call fcn.00403b50
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x416e90]
call fcn.00403b50
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x416e90]
call fcn.00403b50
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x425288]
call fcn.0042d204
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4615bc
mov eax, dword [0x4bb31c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042d5d8
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4637d0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4bb31c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040e4dc
test eax, eax
je 0x46150c
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409d54
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040e510
test eax, eax
je 0x461520
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404cd0
mov byte [ebx + 0xd4], 0
push ebx
push 0x462a4c
call fcn.00421afc
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4bb0cc]
cmp byte [eax], 0
jne 0x461571
mov eax, ebx
call fcn.00461700
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004639ac
mov eax, ebx
call fcn.0046450c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4615b1
call fcn.00403efc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x461980
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4bf584]
cmp dword [eax + 0x30], 0
je 0x461a2a
cmp dword [ebx + 0x94], 0
jne 0x461a24
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x461910
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x461a24
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4619ea
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x461a24
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00419620
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4619f9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x462744
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x462779
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404b50
jmp 0x462786
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404ab4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x463b90
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x463bfe
mov eax, esi
call fcn.0044dd20
test al, al
je 0x463bfe
mov eax, dword [ebx + 0x84]
call fcn.0044d980
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x463bfe
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x463bf2
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044d980
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00445d68
jmp 0x463bfe
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004639cc
pop esi
pop ebx
ret

Function at 0x4849e8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x484a42
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004849d8
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.00482298
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00481db0
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484a49
lea eax, [ebp - 4]
call fcn.00404a60
ret
Function at 0x4937c4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4937f2
mov eax, ebx
call fcn.00494278
cmp dword [ebx + 0x40], 0
je 0x4937eb
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x493863
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x493855
cmp dword [ebx + 8], 0
je 0x493814
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x493826
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x493855
cmp dword [ebx + 8], 0
je 0x493807
cmp eax, 3
je 0x493839
dec eax
jne 0x493807
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x493807
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x493807
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x493881
cmp dword [ebx + 0x14], 0xcc
je 0x493881
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0049388c
pop ebx
ret
Function at 0x4a47e0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x407a94]
call fcn.0040551c
xor eax, eax
push ebp
push 0x4a4981
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4baf48], 0
jne 0x4a483b
mov ecx, dword [0x4bb0ec]
mov dl, 1
mov eax, dword [0x408088]
call fcn.0040d6c4
call fcn.004043f4
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.004034a0
mov eax, ebx
call fcn.004053cc
mov dword [ebp - 0x24], eax
mov esi, 0x4a4990
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.004065e8
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.004053dc
test eax, eax
jle 0x4a4924
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4a4910
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00404cd0
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x4a48b6
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.00404ce8
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x4a48cc
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.00404ce8
mov eax, dword [ebp - 0x54]
call fcn.00404f24
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00404cd0
mov eax, dword [ebp - 0x58]
call fcn.00404f24
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x4a4912
xor eax, eax
test al, al
je 0x4a491d
mov ebx, 0x15
jmp 0x4a4929
mov ebx, 0x10
jmp 0x4a4929
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x4baf48]
call fcn.004a4664
mov eax, dword [ebp - 4]
call fcn.004a4664
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00406600
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a4988
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00404a84
lea eax, [ebp - 0xc]
mov edx, dword [0x407a94]
call fcn.004055ec
ret
Function at 0x4ac438
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
jmp 0x4ac4d2
mov eax, dword [edi + 0xc]
add eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 8], eax
mov ebx, dword [edi + 0x10]
add ebx, dword [ebp + 8]
mov esi, ebx
cmp dword [edi + 4], 0xffffffff
jne 0x4ac4ca
mov ebx, dword [edi]
add ebx, dword [ebp + 8]
jmp 0x4ac4ca
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push esi
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4ac4c4
test byte [ebx + 3], 0x80
je 0x4ac4a0
mov eax, dword [ebx]
and eax, 0xffff
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [esi], eax
jmp 0x4ac4b4
mov eax, dword [ebp + 8]
add eax, dword [ebx]
add eax, 2
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [esi], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 4
push esi
call sub.kernel32.dll_VirtualProtect
add ebx, 4
add esi, 4
cmp dword [ebx], 0
jne 0x4ac473
add edi, 0x14
cmp dword [edi + 0x10], 0
je 0x4ac4e2
cmp dword [edi + 0xc], 0
jne 0x4ac449
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4ac4ec
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
mov edi, dword [ebp - 4]
push 0x40
push edi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x4ac648
cmp word [edi], 0x5a4d
jne 0x4ac648
mov esi, dword [edi + 0x3c]
add esi, dword [ebp - 4]
push 0xf8
push esi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x4ac648
cmp dword [esi], 0x4550
jne 0x4ac648
xor eax, eax
mov dword [ebp - 0x10], eax
mov ebx, esi
add ebx, 0xf8
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4ac648
push 0x40
push 0x3000
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4ac648
movzx eax, word [esi + 6]
mov dword [ebp - 0xc], eax
mov ecx, ebx
sub ecx, edi
mov eax, dword [ebp - 0xc]
add eax, eax
add eax, eax
add eax, eax
lea eax, [eax + eax*4]
add ecx, eax
mov edx, edi
mov eax, dword [ebp - 0x18]
call fcn.00407890
mov ecx, dword [ebp - 0x10]
dec ecx
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x14]
xor edx, edx
call fcn.00407890
mov edi, dword [ebp - 0xc]
dec edi
test edi, edi
jl 0x4ac5d6
inc edi
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
add edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
add eax, dword [ebp - 0x18]
call fcn.00407890
add ebx, 0x28
dec edi
jne 0x4ac5bc
mov eax, dword [esi + 0xa0]
test eax, eax
je 0x4ac5f7
mov edx, dword [esi + 0xa4]
push edx
mov ecx, eax
add ecx, dword [ebp - 0x18]
mov eax, dword [esi + 0x34]
mov edx, dword [ebp - 0x18]
call fcn.004ac3c4
mov eax, dword [esi + 0x80]
mov ebx, dword [ebp - 0x18]
add eax, ebx
push eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.004ac438
mov eax, dword [esi + 0x28]
mov edi, eax
add edi, ebx
mov edx, edi
test eax, eax
je 0x4ac642
xor eax, eax
push ebp
push 0x4ac638
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 1
push ebx
call edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ac642
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ac8e8
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebp, eax
xor ebx, ebx
test ebp, ebp
je 0x4ac921
mov edi, ebp
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4ac921
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
jne 0x4ac921
push 0x4000
mov eax, dword [esi + 0x50]
push eax
push edi
call sub.kernel32.dll_VirtualFree_1
test eax, eax
je 0x4ac921
mov bl, 1
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4b3214
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe58
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x19c], ecx
mov dword [ebp - 0x1a0], ecx
mov dword [ebp - 0x1a4], ecx
mov dword [ebp - 0x1a8], ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f14
xor eax, eax
push ebp
push 0x4b3347
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x198]
push eax
push 2
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x4b331c
mov eax, dword [ebp - 4]
call fcn.00404f24
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4b331c
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ebx, dword [eax]
push ebx
call sub.wsock32.dll_ntohl
mov ebx, eax
lea edx, [ebp - 0x19c]
mov eax, ebx
shr eax, 0x18
call fcn.00409614
push dword [ebp - 0x19c]
push 0x4b335c
lea edx, [ebp - 0x1a0]
mov eax, ebx
shr eax, 0x10
and eax, 0xff
call fcn.00409614
push dword [ebp - 0x1a0]
push 0x4b335c
lea edx, [ebp - 0x1a4]
mov eax, ebx
shr eax, 8
and eax, 0xff
call fcn.00409614
push dword [ebp - 0x1a4]
push 0x4b335c
lea edx, [ebp - 0x1a8]
mov eax, ebx
and eax, 0xff
call fcn.00409614
push dword [ebp - 0x1a8]
lea eax, [ebp - 8]
mov edx, 7
call fcn.00404de4
mov eax, esi
mov edx, dword [ebp - 8]
call fcn.00404ab4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b334e
lea eax, [ebp - 0x1a8]
mov edx, 4
call fcn.00404a84
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404a84
ret

Function at 0x4b3360
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00409f40
add esp, 0x108
pop ebx
ret

Function at 0x4b338c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetTempPathA
mov edx, ebx
mov eax, esp
call fcn.00409f40
add esp, 0x108
pop ebx
ret

Function at 0x4b4414
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
xor edx, edx
mov dword [ebp - 0x108], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b44a8
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 0x104]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.004034a0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetComputerNameA
lea edx, [ebp - 0x108]
lea eax, [ebp - 0x104]
call fcn.00409f40
cmp dword [ebp - 0x108], 0
jne 0x4b4482
mov eax, ebx
call fcn.00404a60
jmp 0x4b448f
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.00409f40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b44af
lea eax, [ebp - 0x108]
call fcn.00404a60
ret
Function at 0x4b4688
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f14
xor eax, eax
push ebp
push 0x4b4809
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
xor edx, edx
mov eax, 2
call fcn.004a4298
mov esi, eax
mov dword [ebp - 0x12c], 0x128
lea edx, [ebp - 0x12c]
mov eax, esi
call fcn.004a42b8
mov ebx, eax
jmp 0x4b47d5
lea eax, [ebp - 0x138]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.00404cd0
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00409be8
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00408e30
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00408e30
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00404e70
je 0x4b47ac
lea eax, [ebp - 0x144]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.00404cd0
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00408e30
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00408e30
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00404e70
jne 0x4b47c6
push 0
mov eax, dword [ebp - 0x124]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov edi, eax
lea edx, [ebp - 0x12c]
mov eax, esi
call fcn.004a42d8
mov ebx, eax
test ebx, ebx
jne 0x4b4707
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b4810
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00404a84
lea eax, [ebp - 4]
call fcn.00404a60
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x661712c3
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x72a63086
nop
nop
nop
nop
test eax, eax
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Move file
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x210], eax
cmp dword [esp + 0x218], 2
push edi
mov edi, dword [esp + 0x220]
mov dword [esp + 4], 0xbfbbef
mov dword [esp + 8], 0
jge 0x40105b
push str.Usage:_utf8_bom_remover.exe_file_path
call fcn.00405071
add esp, 4
xor eax, eax
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040119c
add esp, 0x214
ret
mov edi, dword [edi + 4]
push 0
push edi
call fcn.00404140
add esp, 8
test eax, eax
jne 0x401184
push 0x208
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00401e30
lea edx, [esp + 0x18]
add esp, 0xc
mov ecx, edi
sub edx, edi
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x401090
mov ax, word [0x4121b0]
movq xmm0, qword [str._tmp]
mov word [esp + 0x14], ax
lea eax, [esp + 0xc]
push esi
push eax
push edi
movq qword [esp + 0x18], xmm0
call fcn.00404216
lea eax, [esp + 0x18]
push 0x4121b4
push eax
call fcn.004042f9
mov esi, eax
lea eax, [esp + 0x1c]
push esi
push 3
push 1
push eax
call fcn.00404a37
add esp, 0x20
lea ecx, [esp + 8]
lea eax, [esp + 0xc]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401110
test dl, dl
je 0x40110c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401110
add eax, 2
add ecx, 2
test dl, dl
jne 0x4010f0
xor eax, eax
jmp 0x401115
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40116f
push eax
push 3
push esi
call fcn.00404e5b
push 0x4121b8
push edi
call fcn.004042f9
push esi
mov edi, eax
call fcn.004045b0
add esp, 0x18
cmp al, 0xff
je 0x401157
nop dword [eax]
movsx eax, al
push edi
push eax
call fcn.0040482a
push esi
call fcn.004045b0
add esp, 0xc
cmp al, 0xff
jne 0x401140
push esi
call fcn.00404544
push edi
call fcn.00404544
lea eax, [esp + 0x18]
push eax
call fcn.00404310
jmp 0x401180
push esi
call fcn.00404544
lea eax, [esp + 0x14]
push edi
push eax
call fcn.00404216
add esp, 0xc
pop esi
mov ecx, dword [esp + 0x214]
xor eax, eax
pop edi
xor ecx, esp
call fcn.0040119c
add esp, 0x214
ret

Function at 0x4019a2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4019e1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4019e1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4019e1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4019e1
cmp dword [ecx + 0x74], 0xe
jbe 0x4019e1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret