joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a964
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44ab0f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44aaf0
mov dl, 1
mov eax, dword [0x411c84]
call fcn.0040343c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004041e0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44aadf
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004388cc
test al, al
je 0x44aad2
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44ab20
lea eax, [ebp - 0x254]
call fcn.00408c84
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44aad2
xor eax, eax
push ebp
push 0x44aacb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44ab58
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44aab4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404450
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44aab4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404450
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44aad2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44a9d5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415760
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ab16
lea eax, [ebp - 0x260]
call fcn.004041e0
ret

Function at 0x44b458
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x451bb0]
cmp byte [eax + 0xa5], 0
jne 0x44b4c9
cmp dword [0x451bc8], 0
jne 0x44b48a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44b414
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x451bc8], eax
cmp dword [0x451bc4], 0
jne 0x44b4a5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x451bc4], eax
cmp dword [0x451bcc], 0
jne 0x44b4c9
push esp
push 0
push 0
push 0x44b3b8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x451bcc], eax
pop edx
ret
Function at 0x44bb5c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x451bb0]
cmp dword [eax + 0x30], 0
je 0x44bc06
cmp dword [ebx + 0x94], 0
jne 0x44bc00
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44baec
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44bc00
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 0x44bbc6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44bc00
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.00413bd0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44bbd5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44c764
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44c799
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.004042d0
jmp 0x44c7a6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404234
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44d8b8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44d8f9
mov eax, esi
call fcn.00433f8c
test al, al
je 0x44d8f9
mov eax, dword [ebx + 0x84]
call fcn.00433d2c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44d8f9
push 0
mov eax, dword [ebx + 0x84]
call fcn.00433d2c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4011c0
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0x208
lea eax, [esp + 0xe4]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x41296c
push eax
call edi
mov ebx, dword [esp + 0x224]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0xf4]
push ebx
push ecx
call esi
lea edx, [esp + 0xf4]
push str..ttf
push edx
call esi
push 0x180
lea eax, [esp + 0xf8]
push 0x8101
push eax
call fcn.00401740
mov ebp, eax
add esp, 0xc
cmp ebp, 0xffffffff
jne 0x401234
push str.Couldnt_create_data_file
call fcn.004016c0
add esp, 4
mov ecx, dword [esp + 0x220]
mov edx, dword [esp + 0x21c]
push ecx
push edx
push ebp
call fcn.004014a0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x401262
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
push ebp
call fcn.004013c0
add esp, 4
lea eax, [esp + 0xf4]
lea ecx, [esp + 0x174]
push eax
push ecx
call edi
lea edx, [esp + 0x10]
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x10]
lea ecx, [esp + 0xb4]
push eax
push ecx
call edi
lea edx, [esp + 0xb4]
push str._fonts
push edx
call esi
lea eax, [esp + 0x10]
push str._fonts_
push eax
call esi
lea ecx, [esp + 0x10]
push ebx
push ecx
call esi
lea edx, [esp + 0x10]
push str..ttf
push edx
call esi
lea eax, [esp + 0x50]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x50]
push 0x412934
push ecx
call esi
lea edx, [esp + 0x50]
push ebx
push edx
call esi
lea eax, [esp + 0x50]
push str..fot
push eax
call esi
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.GDI32.dll_RemoveFontResourceA]
lea edx, [esp + 0x10]
push 0
lea eax, [esp + 0x178]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x1b4]
push ebx
push ecx
call edi
lea edx, [esp + 0x1b4]
push str..ttf
push edx
call esi
lea eax, [esp + 0xb4]
lea ecx, [esp + 0x1b4]
push eax
lea edx, [esp + 0x54]
push ecx
push edx
push 0
call dword [sym.imp.GDI32.dll_CreateScalableFontResourceA]
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.GDI32.dll_AddFontResourceA]
push 0
push 0
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0xf4]
push ecx
call fcn.00401390
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret

Function at 0x401390
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4013a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4013a9
xor eax, eax
test eax, eax
je 0x4013ba
push eax
call fcn.00401cf0
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x4014a0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x4153e0]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x40164d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x4152e0]
lea edi, [ecx*4 + 0x4152e0]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x40164d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40150e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x40151f
push 2
push ebp
push eax
call fcn.00402300
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x40167e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x4015c9
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x40157a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x401567
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x40154a
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40166f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x4015c5
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x401546
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40163e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x401612
cmp eax, 5
jne 0x4015fb
mov dword [0x415020], eax
mov dword [0x41501c], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00401cf0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x401632
cmp byte [ebp], 0x1a
jne 0x401632
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x41501c], 0x1c
jmp 0x401657
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x41501c], 9
pop edi
pop esi
pop ebp
mov dword [0x415020], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4015c5
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4016af
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x4015c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4015c9
Function at 0x401b20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405008
push 0x4032a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x415034], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x415030], ecx
shl ecx, 8
add ecx, edx
mov dword [0x41502c], ecx
shr eax, 0x10
mov dword [0x415028], eax
call fcn.00403170
test eax, eax
jne 0x401b8a
push 0x1c
call fcn.00401cc0
add esp, 4
mov dword [ebp - 4], 0
call fcn.00402100
call fcn.00403160
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4153f0], eax
call fcn.00402d30
mov dword [0x415010], eax
test eax, eax
je 0x401bbd
mov eax, dword [0x4153f0]
test eax, eax
jne 0x401bc7
push 0xffffffffffffffff
call fcn.00401d90
add esp, 4
call fcn.00402a80
call fcn.00402990
call fcn.00401d60
mov esi, dword [0x4153f0]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x401ca6
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x401c0e
test al, al
je 0x401c0e
and eax, 0xff
push eax
call fcn.00402930
add esp, 4
test eax, eax
je 0x401be8
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401be8
cmp byte [esi], 0x22
jne 0x401c17
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x401c27
cmp al, 0x20
ja 0x401c27
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401c17
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x401c48
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x401c4d
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 - 0x60], eax
push eax
call fcn.00401d90
jmp 0x401c8b
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 0x401c17
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401ca6

Function at 0x401dd0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x415064]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x401def
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x415060], 1
mov byte [0x41505c], bl
jne 0x401e49
mov ecx, dword [0x4153e8]
test ecx, ecx
je 0x401e37
mov esi, dword [0x4153e4]
sub esi, 4
cmp esi, ecx
jb 0x401e37
mov eax, dword [esi]
test eax, eax
je 0x401e30
call eax
mov ecx, dword [0x4153e8]
sub esi, 4
cmp esi, ecx
jae 0x401e22
push 0x406014
push 0x406010
call fcn.00401e80
add esp, 8
push 0x40601c
push 0x406018
call fcn.00401e80
add esp, 8
test ebx, ebx
jne 0x401e70
push ebp
mov dword [0x415064], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x4023c0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00403720
mov eax, dword [0x4153e0]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x402522
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x4152e0]
test byte [edx + ecx*8 + 4], 1
je 0x402522
push 1
push ebp
push ebx
call fcn.00402300
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x40252c
push 2
push ebp
push ebx
call fcn.00402300
add esp, 0xc
cmp eax, 0xffffffff
je 0x40252c
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x4024c8
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.004036a0
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x40246f
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.004014a0
add esp, 0xc
cmp eax, 0xffffffff
je 0x40248b
sub esi, eax
test esi, esi
jle 0x4024a1
jmp 0x402460
cmp dword [0x415020], 5
jne 0x40249e
mov dword [0x41501c], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.004036a0
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.00402300
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x402509
push 0
push ecx
push ebx
call fcn.00402300
add esp, 0xc
push ebx
call fcn.004020b0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x402509
mov dword [0x41501c], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x415020], eax
push 0
push edi
push ebx
call fcn.00402300
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x41501c], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x402d30
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x415178]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x402d72
call edi
mov esi, eax
test esi, esi
je 0x402d5c
mov eax, 1
jmp 0x402d6d
call ebp
mov ebx, eax
test ebx, ebx
je 0x402e7f
mov eax, 2
mov dword [0x415178], eax
cmp eax, 1
jne 0x402e12
test esi, esi
jne 0x402d8b
call edi
mov esi, eax
test esi, esi
je 0x402e7f
cmp word [esi], 0
mov eax, esi
je 0x402da5
add eax, 2
cmp word [eax], 0
jne 0x402d93
add eax, 2
cmp word [eax], 0
jne 0x402d93
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x402e04
push edi
call fcn.004035a0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x402e04
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x402df6
push ebx
call fcn.00403650
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x402e7f
test ebx, ebx
jne 0x402e23
call ebp
mov ebx, eax
test ebx, ebx
je 0x402e7f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x402e3b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402e2b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402e2b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.004035a0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x402e5d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4033c0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x412d38
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4033e4
add eax, 8
inc ebp
cmp eax, 0x412dc8
jb 0x4033d5
cmp ecx, dword [ebp*8 + 0x412d38]
jne 0x40358b
mov eax, dword [0x415018]
cmp eax, 1
je 0x40354d
test eax, eax
jne 0x403410
cmp dword [0x412974], 1
je 0x40354d
cmp ecx, 0xfc
je 0x40358b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40344b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x403494
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x405620
add ebx, ecx
push ebx
call fcn.00403f00
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x405600
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x412d3c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00403e70
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x4152e0]
test eax, eax
je 0x40355e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x403568
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x412d3c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x47d670
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e4893
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x651ea8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x94], esi
push 0x61d870
push str.test.txt
call fcn.00598656
mov edx, dword [esi + 4]
add esp, 8
mov dword [ebp - 0x9c], eax
mov edi, dword [edx]
cmp edi, edx
je 0x47e491
nop word [eax + eax]
Function at 0x10002cd9
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0xc]
push 3
pop ecx
xor edx, edx
lea eax, [esi + 3]
div ecx
lea eax, [eax + esi + 7]
push eax
push dword [ebp + 0x10]
call fcn.10002c9a
pop ecx
pop ecx
test eax, eax
je 0x10002dda
push dword [ebp + 0x10]
call fcn.10002c93
and dword [ebp - 0xc], 0
add esp, 4
mov ecx, eax
test esi, esi
jbe 0x10002dbc
push ebx
push edi
xor edx, edx
push 3
pop edi
lea eax, [esi - 1]
div edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], 2
inc eax
mov edx, eax
imul edx, edx, 3
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 8]
dec edx
cmp edx, esi
jae 0x10002d49
mov dl, byte [edi + 1]
jmp 0x10002d4b
xor dl, dl
cmp dword [ebp - 8], esi
jae 0x10002d58
mov bl, byte [edi + 2]
mov byte [ebp - 1], bl
jmp 0x10002d5c
mov byte [ebp - 1], 0
movzx esi, byte [edi]
shr esi, 2
mov bl, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_h]
mov byte [ecx], bl
movzx esi, dl
movzx edx, byte [edi]
and edx, 3
add dword [ebp - 8], 3
shl edx, 4
mov ebx, esi
shr ebx, 4
or edx, ebx
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_h]
inc ecx
mov byte [ecx], dl
movzx edx, byte [ebp - 1]
and esi, 0xf
mov ebx, edx
shr ebx, 6
shl esi, 2
or ebx, esi
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_h]
mov esi, dword [ebp + 0xc]
inc ecx
mov byte [ecx], bl
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_h]
inc ecx
mov byte [ecx], dl
inc ecx
add edi, 3
dec eax
jne 0x10002d3c
pop edi
pop ebx
lea eax, [esi + 1]
cmp dword [ebp - 0xc], eax
je 0x10002dd0
add esi, 2
cmp dword [ebp - 0xc], esi
jne 0x10002dd4
mov byte [ecx - 2], 0x3d
mov byte [ecx - 1], 0x3d
xor eax, eax
mov byte [ecx], 0
inc eax
pop esi
leave
ret