joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48b9b8
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 0x48ba12
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0048b9a8
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0047affc
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0047abfc
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 0x48ba19
lea eax, [ebp - 4]
call fcn.00404a58
ret

Function at 0x48ed50
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x48ee77
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404a58
lea eax, [ebp - 4]
push eax
mov eax, edi
call fcn.00404f18
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jbe 0x48ee5c
mov eax, ebx
call fcn.00402b18
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x48ee55
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, edi
call fcn.00404f18
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x48ee88
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
mov ebx, dword [ebp - 0xc]
push dword [esi]
mov eax, dword [ebx + 8]
call fcn.0040799c
movzx eax, ax
lea edx, [ebp - 0x10]
call fcn.00409324
push dword [ebp - 0x10]
push 0x48ee94
lea edx, [ebp - 0x14]
movzx eax, word [ebx + 8]
call fcn.00409324
push dword [ebp - 0x14]
push 0x48ee94
mov eax, dword [ebx + 0xc]
call fcn.0040799c
movzx eax, ax
lea edx, [ebp - 0x18]
call fcn.00409324
push dword [ebp - 0x18]
push 0x48ee94
lea edx, [ebp - 0x1c]
movzx eax, word [ebx + 0xc]
call fcn.00409324
push dword [ebp - 0x1c]
mov eax, esi
mov edx, 8
call fcn.00404dd8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ee5c
mov eax, dword [ebp - 8]
call fcn.00402b48
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ee7e
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00404a7c
ret
Function at 0x48ee98
Capabilities:
Check for time delay via gettickcount
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe88
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x178], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x48f0cf
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x178]
xor eax, eax
call fcn.00402f14
mov eax, dword [ebp - 0x178]
call fcn.00404f18
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x48f0b6
mov eax, 0x10000
call fcn.00402b18
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x48f0b6
xor edx, edx
push ebp
push 0x48f0ab
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 0
push 0
mov eax, ebx
call fcn.00404f18
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x48ef48
call fcn.00404474
jmp 0x48f0b6
push 0
push 2
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetSetFilePointer
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetSetFilePointer
mov edx, esi
lea eax, [ebp - 0x174]
call fcn.00403240
mov edx, 1
lea eax, [ebp - 0x174]
call fcn.00403640
call fcn.00402ca4
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x20], eax
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x24], eax
cmp word [ebp + 0xe], 0
je 0x48efb4
lea eax, [ebp - 0x25]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp + 0x10]
call dword [ebp + 0xc]
xor edx, edx
push ebp
push 0x48f085
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x1c]
push eax
push 0x10000
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetReadFile
push 0
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x174]
call fcn.00403390
call fcn.00402ca4
add ebx, dword [ebp - 0x1c]
call sub.kernel32.dll_GetTickCount
cmp word [ebp + 0xe], 0
je 0x48f03e
mov edx, ebx
sub edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 4]
ja 0x48f013
mov edx, eax
sub edx, dword [ebp - 0x24]
cmp edx, dword [ebp + 8]
jbe 0x48f03e
mov byte [ebp - 0x25], 0
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x25]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp + 0x10]
call dword [ebp + 0xc]
cmp byte [ebp - 0x25], 0
je 0x48f03e
call fcn.00404474
call fcn.00404474
jmp 0x48f0b6
cmp dword [ebp - 0x1c], 0
jne 0x48efc2
cmp word [ebp + 0xe], 0
je 0x48f05e
lea eax, [ebp - 0x25]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp + 0x10]
call dword [ebp + 0xc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48f08c
lea eax, [ebp - 0x174]
call fcn.004033b0
call fcn.00402ca4
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48f0d6
lea eax, [ebp - 0x178]
call fcn.00404a58
ret
Function at 0x48f37c
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x15c], edx
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f08
lea edi, [ebp - 0x144]
xor eax, eax
push ebp
push 0x48f519
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
push edi
lea eax, [ebp - 0x148]
mov ecx, 0x48f534
mov edx, dword [ebp - 4]
call fcn.00404d64
mov eax, dword [ebp - 0x148]
call fcn.00404f18
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov esi, eax
jmp 0x48f4db
lea eax, [ebp - 0x14c]
lea edx, [edi + 0x2c]
mov ecx, 0x104
call fcn.00404cc8
mov eax, dword [ebp - 0x14c]
mov edx, 0x48f544
call fcn.00404e64
je 0x48f4ce
lea eax, [ebp - 0x150]
lea edx, [edi + 0x2c]
mov ecx, 0x104
call fcn.00404cc8
mov eax, dword [ebp - 0x150]
mov edx, 0x48f550
call fcn.00404e64
je 0x48f4ce
cmp dword [edi], 0x10
jne 0x48f492
push dword [ebp - 4]
push 0x48f55c
lea eax, [ebp - 0x158]
lea edx, [edi + 0x2c]
mov ecx, 0x104
call fcn.00404cc8
push dword [ebp - 0x158]
lea eax, [ebp - 0x154]
mov edx, 3
call fcn.00404dd8
mov eax, dword [ebp - 0x154]
call fcn.0048f37c
jmp 0x48f4ce
push dword [ebp - 4]
push 0x48f55c
lea eax, [ebp - 0x160]
lea edx, [edi + 0x2c]
mov ecx, 0x104
call fcn.00404cc8
push dword [ebp - 0x160]
lea eax, [ebp - 0x15c]
mov edx, 3
call fcn.00404dd8
mov eax, dword [ebp - 0x15c]
call fcn.00409a44
push edi
push esi
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x48f401
push esi
call sub.kernel32.dll_FindClose_1
mov eax, dword [ebp - 4]
call fcn.00409c94
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48f520
lea eax, [ebp - 0x160]
mov edx, 7
call fcn.00404a7c
lea eax, [ebp - 4]
call fcn.00404a58
ret

Function at 0x48f5b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f08
xor eax, eax
push ebp
push 0x48f68e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x209]
mov edx, dword [ebp - 4]
call fcn.00409d44
lea eax, [ebp - 0x250]
xor ecx, ecx
mov edx, 0x44
call fcn.00403518
mov dword [ebp - 0x250], 0x44
mov dword [ebp - 0x224], 1
mov word [ebp - 0x220], bx
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x250]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
lea eax, [ebp - 0x209]
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x48f645
mov dword [ebp - 8], 0xffffffff
jmp 0x48f678
mov eax, dword [ebp - 0x260]
call fcn.0048f560
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x260]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x260]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x25c]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48f695
lea eax, [ebp - 4]
call fcn.00404a58
ret
Function at 0x48f6f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, eax
movzx eax, byte [esi]
inc esi
xor al, dl
shr edx, 8
xor edx, dword [eax*4 + 0x49bfec]
loop 0x48f6f3
mov eax, edx
pop esi
ret

Function at 0x494404
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x494417
add esp, 0xfffffff0
call fcn.00403f60
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00494324
mov esi, dword [ebx + 4]
cmp esi, 0xffffffff
je 0x494453
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingA
mov edi, eax
mov dword [ebx + 8], edi
push 0
push 0
push 0
push 4
push edi
call sub.kernel32.dll_MapViewOfFile
mov dword [ebx + 0xc], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x49446a
call fcn.00403fb8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x494be8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov edi, dword [ebp + 8]
mov eax, dword [ebx + 0x10]
cmp esi, dword [eax + 0x10]
setb byte [ebp - 5]
cmp byte [ebp - 5], 0
je 0x494c3b
push 0
push 0
mov eax, dword [eax + esi*8 + 0x19]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_SetFilePointer_1
push 0
push edi
push 0xd
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ReadFile_1
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + esi*8 + 0x19]
add eax, 0xd
mov dword [edi], eax
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x49573c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f08
xor eax, eax
push ebp
push 0x4957e5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403518
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 0x41
mov word [ebp - 0x18], bx
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404f18
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x4957c8
push 0xffffffffffffffff
mov eax, dword [ebp - 0x58]
push eax
call sub.user32.dll_WaitForInputIdle
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x4957cf
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4957ec
lea eax, [ebp - 4]
call fcn.00404a58
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x118fa3c
call fcn.0040121c
mov edi, 0x94
mov eax, edi
call fcn.004011dc
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x118fa3c], ecx
mov eax, dword [esi + 4]
mov dword [0x118fa40], eax
mov edx, dword [esi + 8]
mov dword [0x118fa44], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x118fa48], esi
cmp ecx, 2
je 0x401060
or esi, 0x8000
mov dword [0x118fa4c], esi
shl eax, 8
add eax, edx
mov dword [0x118fa3c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40109b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40109b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4010b3
cmp eax, 0x20b
je 0x4010a0
mov dword [ebp - 0x1c], esi
jmp 0x4010c7
cmp dword [ecx + 0x84], 0xe
jbe 0x40109b
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4010c1
cmp dword [ecx + 0x74], 0xe
jbe 0x40109b
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00401224
pop ecx
test eax, eax
jne 0x4010f3
cmp dword [0x118fa3c], 1
jne 0x4010e0
call fcn.00401224
push 0x1c
call fcn.00401224
push 0xff
call fcn.00401224
pop ecx
pop ecx
call fcn.00401224
mov dword [ebp - 4], esi
call fcn.00401224
test eax, eax
jge 0x40110c
push 0x1b
call fcn.00401224
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x118fa3c], eax
call fcn.00401224
mov dword [0x118fa40], eax
call fcn.00401224
test eax, eax
jge 0x401132
push 8
call fcn.00401224
pop ecx
call fcn.00401224
test eax, eax
jge 0x401143
push 9
call fcn.00401224
pop ecx
push 1
call fcn.00401224
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x401159
push eax
call fcn.00401224
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00401224
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40117a
movzx eax, word [ebp - 0x40]
jmp 0x40117d
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401228
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40119b
push edi
call fcn.00401220
call fcn.00401224
jmp 0x4011cd
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00401224
ret

Function at 0x401228
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push esi
push edi
push ebx
lea eax, [ebp - 4]
push eax
push 0x40
push 0x1c8000
push section..rdata
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401252
push 0xfc837c
jmp 0x40125e
pop ebx
pop edi
pop esi
leave
ret 0x14
ret
Function at 0x43b671
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x43b3c1
dec edx
sub ebx, ebx
call fcn.0043b6a2
or ebx, edx
add edx, ebx
add edx, edx
xor dword [eax], edi
inc ebx
add eax, 1
or edx, edx
add ebx, ebx
cmp eax, ecx
jne fcn.0043b671
sub edx, ebx
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 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408e84
mov ecx, 0x7289505b
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x6b5e5a55
nop
nop
nop
nop
test eax, eax
je 0x430084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x46bbd0
Capabilities:
Get keyboard layout

Disassembly:
push ecx
push esi
mov esi, eax
movzx eax, word [esi]
cmp eax, 0x20
je 0x46bbe1
cmp eax, 9
jne 0x46bbe6
add esi, 2
jmp 0x46bbd4
movzx ecx, word [esi]
test cx, cx
jne 0x46bbf3
xor al, al
pop esi
pop ecx
ret
cmp word [esi + 2], 0
lea eax, [esi + 2]
jne 0x46bc0d
mov eax, dword [esp + 0xc]
mov word [eax + 2], cx
mov byte [eax], 0
mov al, 1
pop esi
pop ecx
ret
push ebx
push ebp
push edi
mov edi, dword [esp + 0x18]
push 0x2b
xor bl, bl
push eax
mov byte [edi], 1
mov byte [esp + 0x1b], bl
call fcn.00490e21
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x46bcdc
lea eax, [ebp - 2]
cmp eax, esi
jbe 0x46bc54
lea esp, [esp]
movzx ecx, word [eax]
cmp ecx, 0x20
je 0x46bc4d
cmp ecx, 9
jne 0x46bc54
sub eax, 2
cmp eax, esi
ja 0x46bc40
sub eax, esi
sar eax, 1
lea edi, [eax + 1]
push edi
push 0x4a4214
push esi
call fcn.004901fd
add esp, 0xc
test eax, eax
jne 0x46bc73
or bl, 1
jmp 0x46bca1
push edi
push 0x4a420c
push esi
call fcn.004901fd
add esp, 0xc
test eax, eax
jne 0x46bc8b
or bl, 4
jmp 0x46bca1
push edi
push 0x4a4200
push esi
call fcn.004901fd
add esp, 0xc
test eax, eax
jne 0x46bd14
or bl, 0x10
lea esi, [ebp + 2]
movzx eax, word [esi]
cmp eax, 0x20
je 0x46bcb1
cmp eax, 9
jne 0x46bcb6
add esi, 2
jmp 0x46bca4
cmp word [esi], 0
je 0x46bd14
lea eax, [esi + 2]
push 0x2b
push eax
call fcn.00490e21
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x46bc32
mov edi, dword [esp + 0x18]
mov byte [esp + 0x13], bl
cmp word [esi + 2], 0
jne 0x46bd20
push 1
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx edx, word [esi]
push eax
lea ecx, [esp + 0x1b]
push ecx
push edx
call dword [sym.imp.USER32.dll_CharLowerW]
mov esi, eax
call fcn.00414130
mov bl, byte [esp + 0x1f]
movzx eax, al
add esp, 0xc
mov word [edi + 2], ax
jmp 0x46bd3e
pop edi
pop ebp
mov byte [esp + 0xb], bl
pop ebx
xor al, al
pop esi
pop ecx
ret
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
xor ecx, ecx
mov eax, esi
call fcn.00414040
movzx ecx, al
add esp, 8
mov word [edi + 2], cx
test bl, 1
je 0x46bd46
or byte [edi], 8
test bl, 4
je 0x46bd4e
or byte [edi], 0x10
test bl, 0x10
je 0x46bd56
or byte [edi], 4
cmp word [edi + 2], 0
pop edi
pop ebp
pop ebx
setne al
pop esi
pop ecx
ret
Function at 0x431006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..3ean
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x431072
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x1d0e483b
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x431060
nop
nop
nop
nop
nop
mov eax, section..7LWLf
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4310d2
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x4a331a61
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4310c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x408bec
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411420
push 0x40bb24
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
mov eax, dword [0x41431c]
test eax, eax
je 0x408c34
mov dword [ebp - 4], 1
call eax
jmp 0x408c30
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
call 0x408c3d
jmp 0x40c8e5
push 0xa
call fcn.0040bc35
push 0x16
call fcn.0040e339
pop ecx
pop ecx
push 3
call fcn.0040701b

Function at 0x408c42
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411438
push 0x40bb24
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
mov eax, dword [fcn.00408bec]
test eax, eax
je 0x408c8a
mov dword [ebp - 4], 1
call eax
jmp 0x408c86
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
call 0x408c93
jmp fcn.00408bec

Function at 0x40bc35
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x413c98
cmp edx, dword [eax]
je 0x40bc57
add eax, 8
inc ecx
cmp eax, 0x413d28
jl 0x40bc48
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x413c98]
jne 0x40bd85
mov eax, dword [0x4142f8]
cmp eax, 1
je 0x40bd5f
test eax, eax
jne 0x40bc88
cmp dword [0x4134b4], 1
je 0x40bd5f
cmp edx, 0xfc
je 0x40bd85
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40bcbf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00409d30
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407e70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40bd02
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407e70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4117b4
push edi
call fcn.00406c10
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00409d30
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00409d40
lea eax, [ebp - 0xa0]
push 0x411794
push eax
call fcn.00409d40
push dword [esi + 0x413c9c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409d40
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040d9ab
add esp, 0x2c
pop edi
jmp 0x40bd85
lea eax, [ebp + 8]
lea esi, [esi + 0x413c9c]
push 0
push eax
push dword [esi]
call fcn.00407e70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx