joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1019fd29
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1018ac69
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1019fd98
cmp esi, dword [ebp - 4]
je 0x1019fd93
cmp dword [ebp + 0xc], 0
je 0x1019fd93
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1019fd70
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1019fdf2
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1019fd9a
xor eax, eax
inc eax
jmp 0x1019fd9a
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x101a5963
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x101bef88]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x101a59a3
cmp byte [ebx], 0xa
jne 0x101a59a3
or byte [edi + eax + 0x28], 4
jmp 0x101a59a8
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x101a5aa7
mov dl, byte [eax]
cmp dl, 0x1a
je 0x101a5a8a
inc eax
cmp dl, 0xd
je 0x101a59d4
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x101a59fa
cmp eax, ecx
jae 0x101a5a08
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x101a59bc
jmp 0x101a5aa7
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101a5a85
cmp dword [ebp - 0x10], 0
je 0x101a5a85
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x101bef88]
test byte [eax + edi + 0x28], 0x48
je 0x101a5a5f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x101a5a4a
mov byte [esi], dl
jmp 0x101a5a5b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x101bef88]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x101a5aa7
cmp byte [ebp - 1], 0xa
jne 0x101a5a6e
cmp esi, ebx
jne 0x101a5a6e
mov byte [esi], 0xa
jmp 0x101a5aa6
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.101a4cc6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x101a5aa7
mov byte [esi], 0xd
jmp 0x101a5aa6
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x101bef88]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x101a5aa4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x101a5aa7
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x101a5ab0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x101bef88]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x101a5af6
cmp word [ebx], dx
jne 0x101a5af6
or byte [eax + edi + 0x28], 4
jmp 0x101a5afb
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x101a5c5e
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x101a5c3e
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x101a5b3c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x101a5b72
cmp eax, edx
jae 0x101a5b80
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x101a5b17
jmp 0x101a5c5e
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101a5c39
cmp dword [ebp - 0x18], 0
je 0x101a5c39
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x101bef88]
test byte [eax + edi + 0x28], 0x48
je 0x101a5c0f
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x101a5bd3
mov word [esi], cx
jmp 0x101a5c0a
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x101bef88]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x101bef88]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x101bef88]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x101a5c5e
pop eax
cmp word [ebp - 4], ax
jne 0x101a5c1f
cmp esi, ebx
jne 0x101a5c1f
mov word [esi], ax
jmp 0x101a5c5b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.101a4cc6
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x101a5c5e
push 0xd
pop eax
jmp 0x101a5c1a
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x101bef88]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x101a5c58
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x101a5c5e
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x101a87f0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.101a8878
Function at 0x409190
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov edi, 0x4b6
push edi
mov esi, ecx
call fcn.00407925
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push 1
add eax, 2
push edi
mov ecx, esi
mov dword [esi + 0x58], eax
call fcn.004079b7
push 1
inc edi
push edi
mov ecx, esi
call fcn.004079b7
and dword [ebp - 0x2c4], 0
push 0x2b0
lea eax, [ebp - 0x2c0]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x4d0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea eax, [ebp - 0x2c4]
push eax
push 0
lea eax, [ebp - 0x4d0]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2c4]
push edi
push dword [esi + 4]
mov dword [esi + 0x50], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x40808c
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.00408e57
mov ecx, esi
mov edi, eax
call fcn.004085bd
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x409e06
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
push dword [ebp + 8]
call fcn.00409b16
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x409e3f
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
invalid
Function at 0x413dfa
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x413e20
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x413e20
xor al, al
jmp 0x413e35
mov edx, dword [ebp - 4]
xor eax, eax
xor ecx, ecx
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x418480
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esi], edi
push dword [esi + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [esi + 8], edi
mov dword [esi + 4], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x1c], edi
push dword [esi + 0x24]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x24], edi
push dword [esi + 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x28], edi
push dword [esi + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x2c], edi
push dword [esi + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x30], edi
push dword [esi + 0x34]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x34], edi
push dword [esi + 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x1c
mov dword [esi + 0x38], edi
pop edi
lea ecx, [esi + 0x3c]
pop esi
jmp fcn.0040b6c0
Function at 0x41bd00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x424c80], ecx
inc edx
cmp edx, 0x100
jb 0x41bd02
cmp edx, 0x800
jae 0x41bdd9
lea esp, [esp]
mov eax, dword [edx*4 + 0x424880]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x424c80]
inc edx
mov dword [edx*4 + 0x424c7c], eax
cmp edx, 0x800
jb 0x41bdb0
mov eax, 0x41c5e0
mov dword [0x424c7c], eax
mov dword [0x426c80], eax
mov dword [0x424c78], 0x41c500
call fcn.0041c010
test eax, eax
jne 0x41be05
mov dword [0x426c80], 0x41c500
ret

Function at 0x401000
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ebp, esp
add esp, 0xfffffffc
push esi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
mov dword [0x403cdc], eax
lea ecx, [ebp - 4]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov eax, dword [ebp + 4]
mov dword [0x403b2d], eax
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x401031
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x403b2d]
mov dword [ebp - 0x48], eax
mov eax, 0x40168b
mov dword [ebp - 0x54], eax
mov ecx, str.Hello
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor ecx, ecx
push ecx
push dword [0x403b2d]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.klavesn
push eax
mov eax, str.Hello
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403d28], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403d28]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x4010ce
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x4010c0
mov esp, ebp
ret
Function at 0x413fa8
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004038a4
xor eax, eax
push ebp
push 0x414122
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40ec68]
call fcn.00402af4
mov ebx, eax
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0040352c
lea eax, [ebp - 0x14c]
push eax
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0040ecbc
mov eax, dword [ebp - 0x14c]
mov edx, 0x414138
call fcn.00403800
je 0x414052
push dword [ebp - 4]
push 0x414138
push 0x414144
lea eax, [ebp - 4]
mov edx, 3
call fcn.004037b0
lea eax, [ebp - 8]
mov ecx, 0x414138
mov edx, dword [ebp - 4]
call fcn.0040373c
jmp 0x41405f
lea eax, [ebp - 4]
mov edx, 0x414144
call fcn.004036f8
lea eax, [ebp - 0x148]
push eax
mov eax, dword [ebp - 4]
call fcn.004038b4
push eax
call sub.KERNEL32.DLL_FindFirstFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4140f7
mov eax, dword [ebp - 0x148]
add eax, 0xfffffff0
sub eax, 8
jb 0x414091
add eax, 0xffffffe8
sub eax, 8
jae 0x4140e0
lea eax, [ebp - 0x11c]
cmp eax, 0x2e
je 0x4140e0
lea eax, [ebp - 0x11c]
cmp eax, 0x414148
je 0x4140e0
lea eax, [ebp - 0x154]
lea edx, [ebp - 0x11c]
mov ecx, 0x104
call fcn.004036c4
mov ecx, dword [ebp - 0x154]
lea eax, [ebp - 0x150]
mov edx, dword [ebp - 8]
call fcn.0040373c
mov edx, dword [ebp - 0x150]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea eax, [ebp - 0x148]
push eax
push ebx
call sub.KERNEL32.DLL_FindNextFileA
neg eax
sbb eax, eax
neg eax
test al, al
jne 0x41407b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414129
lea eax, [ebp - 0x154]
mov edx, 3
call fcn.004034b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004034b8
ret

Function at 0x4022e0
Capabilities:
Terminate process

Disassembly:
mov edx, eax
push dword [0x40374f]
call dword [sym.imp.pdh.dll_PdhCloseQuery]
mov eax, 5
add eax, 5
inc eax
xor edi, edi
xor esi, esi
test eax, 0xb
jne 0x40230e
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, eax
mov dword [0x401775], eax
ret
Function at 0x40100f
Capabilities:
Terminate process

Disassembly:
jmp 0x4035b0
jmp fcn.004013f0
jmp 0x401131
Function at 0x41fa70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x41fa7b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x41fb7e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x5b34d0]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x5b34d0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x5b34d0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x5b34d0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x5b34d0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x5b34d0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x5b34d0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x5b34d0]
xor eax, edx
inc ecx
dec edi
jne 0x41fa96
pop edi
test esi, esi
je 0x41fba0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x5b34d0]
xor eax, edx
inc ecx
dec esi
jne 0x41fb82
pop esi
pop ebx
not eax
ret
Function at 0x429480
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xfc
push ebx
mov ebx, dword [esp + 0x104]
push ebp
push esi
mov esi, dword [esp + 0x110]
xor ebp, ebp
push edi
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], ebp
mov ecx, ebx
mov edx, esi
mov eax, dword [ecx]
add ecx, 4
mov edi, dword [esp + eax*4 + 0x50]
lea eax, [esp + eax*4 + 0x50]
inc edi
dec edx
mov dword [eax], edi
jne 0x4294ea
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x128]
cmp eax, esi
jne 0x429524
mov ecx, dword [esp + 0x124]
mov dword [ecx], ebp
mov dword [edx], ebp
mov eax, dword [edx]
mov ecx, 1
mov dword [esp + 0x10], eax
cmp dword [esp + ecx*4 + 0x50], ebp
jne 0x42953b
inc ecx
cmp ecx, 0xf
jbe 0x42952f
cmp eax, ecx
mov dword [esp + 0x14], ecx
jae 0x429549
mov dword [esp + 0x10], ecx
mov eax, ecx
mov esi, 0xf
cmp dword [esp + esi*4 + 0x50], ebp
jne 0x429557
dec esi
jne 0x42954e
cmp eax, esi
mov dword [esp + 0x28], esi
jbe 0x429565
mov dword [esp + 0x10], esi
mov eax, esi
mov dword [edx], eax
mov edx, 1
shl edx, cl
cmp ecx, esi
jae 0x42957f
sub edx, dword [esp + ecx*4 + 0x50]
js 0x42959a
inc ecx
add edx, edx
cmp ecx, esi
jb 0x429572
lea ecx, [esi*4]
mov dword [esp + 0x30], ecx
lea edi, [esp + ecx + 0x50]
mov ecx, dword [esp + ecx + 0x50]
sub edx, ecx
mov dword [esp + 0x4c], edx
jns 0x4295aa
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
add esp, 0xfc
ret
add ecx, edx
mov dword [esp + 0x94], ebp
mov dword [edi], ecx
xor ecx, ecx
dec esi
je 0x4295cd
xor edi, edi
add ecx, dword [esp + edi + 0x54]
add edi, 4
dec esi
mov dword [esp + edi + 0x94], ecx
jne 0x4295bc
mov esi, ebx
xor edi, edi
mov ecx, dword [esi]
add esi, 4
cmp ecx, ebp
mov dword [esp + 0x20], esi
je 0x4295fd
mov esi, dword [esp + ecx*4 + 0x90]
mov ebx, dword [esp + 0x134]
lea ecx, [esp + ecx*4 + 0x90]
mov dword [ebx + esi*4], edi
inc esi
mov dword [ecx], esi
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x114]
inc edi
cmp edi, ecx
jb 0x4295d1
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
mov ebx, eax
xor edi, edi
mov ecx, dword [esp + ecx + 0x90]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x114], ecx
mov ecx, dword [esp + 0x134]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x14]
neg ebx
cmp ecx, esi
mov dword [esp + 0x90], ebp
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0xd0], edi
mov dword [esp + 0x30], edi
jg 0x4298fb
mov esi, dword [esp + 0x38]
lea edx, [ecx - 1]
mov dword [esp + 0x40], edx
lea edx, [esp + ecx*4 + 0x50]
mov dword [esp + 0x24], edx
Function at 0x4e2f30
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5beb10
push 0x4ecd04
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call sub.KERNEL32.dll_GetVersion
add byte [ebx + 0x5e9ac4], ah
mov eax, dword [0x5e9ac4]
shr eax, 8
and eax, 0xff
mov dword [0x5e9ad0], eax
mov ecx, dword [0x5e9ac4]
and ecx, 0xff
mov dword [0x5e9acc], ecx
mov edx, dword [0x5e9acc]
shl edx, 8
add edx, dword [0x5e9ad0]
mov dword [0x5e9ac8], edx
mov eax, dword [0x5e9ac4]
shr eax, 0x10
and eax, 0xffff
mov dword [0x5e9ac4], eax
push 0
call fcn.004ea180
add esp, 4
test eax, eax
jne 0x4e2fc4
push 0x1c
call fcn.004e30c0
add esp, 4
mov dword [ebp - 4], 0
call fcn.004ea700
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x5ed710], eax
call fcn.004ec9f0
mov dword [0x5e9b28], eax
call fcn.004ec4e0
call fcn.004ec390
call fcn.004df6c0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004ec2d0
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x30]
and edx, 1
test edx, edx
je 0x4e3024
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
mov dword [ebp - 0x6c], eax
jmp 0x4e302b
mov dword [ebp - 0x6c], 0xa
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x64]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.00401127
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
push eax
call fcn.004df700
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x68]
push edx
call fcn.004ec0c0
add esp, 8
ret
Function at 0x10001050
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a64ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.10081835
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
test eax, eax
jne 0x100010e8
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp + 8], str.bad_locale_name
call fcn.1008548a
push 0x100d1db8
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], vtable.std::runtime_error.0
call fcn.1008b1fb
push eax
push esi
call fcn.100813ec
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4