joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d9f0
Capabilities:
Check for foreground window switch
Check for time delay via gettickcount
Hide graphical window
Log keystrokes via polling
Resolve function by parsing pe exports
Set current directory

Disassembly:
add byte [ebx + 0x75db85d8], cl
adc dword [edx], esi
fucomi st(0)
add bl, byte [ebp + eax - 0x7a277500]
fisttp dword [edi]
test byte [esi - 0x7c000002], ah
jmp dword [edx]

Function at 0x44a1d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x44a253
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x44a23e
dec eax
jne 0x44a260
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44a1f7
sub eax, edx
cmp eax, 0x104
ja 0x44a260
inc eax
call fcn.004854f0
mov esi, esp
mov edx, esi
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x44a215
push 0x5c
push esi
call fcn.00478bf7
add esp, 8
test eax, eax
je 0x44a260
push esi
mov byte [eax], 0
call fcn.0044a1d0
add esp, 4
test al, al
je 0x44a260
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne al
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret
test al, 0x10
je 0x44a260
mov al, 1
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret
xor al, al
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret

Function at 0x44a470
Capabilities:
Terminate process

Disassembly:
push ecx
push esi
mov esi, eax
lea eax, [esp + 4]
push eax
push 0x1f4
push 2
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x44a4c1
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x44a4c1
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x44a4c1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ecx
ret

Function at 0x44ce30
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48bfb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xdac
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
xor ebx, ebx
cmp byte [eax], 2
mov eax, dword [eax + 8]
setne cl
mov dword [ebp - 0x3c], edx
mov edx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x34], 0x49588a
dec ecx
and ecx, dword [0x4a09d8]
add edx, edx
mov edi, dword [eax + edx*8 + 0xc]
lea eax, [eax + edx*8 + 0xc]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x38], ebx
Function at 0x455500
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov al, byte [esi + 4]
push edi
mov edi, ecx
cmp al, 0xa
je 0x455528
cmp al, 2
je 0x455528
mov ebx, dword [ebp + 0xc]
lea eax, [esi + 0x10]
mov dword [esp + 0x1c], eax
jmp 0x455532
mov ebx, dword [ebp + 0xc]
lea ecx, [ebx + 0x5c]
mov dword [esp + 0x1c], ecx
cmp byte [edi], 0
mov dword [esp + 0x14], edi
je 0x456f97
nop
Function at 0x45aaf0
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, eax
mov al, byte [edi]
xor bl, bl
mov byte [esp + 0xf], bl
test al, al
je 0x45ab29
cmp al, 0x21
je 0x45ab1a
cmp al, 0x2b
je 0x45ab15
cmp al, 0x5e
jne 0x45ab25
or bl, 2
jmp 0x45ab1d
or bl, 1
jmp 0x45ab1d
or bl, 4
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x45ab04
mov byte [esp + 0xf], bl
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov cl, byte [edi]
test cl, cl
je 0x45ac17
cmp byte [edi + 1], 0
jne 0x45ab7d
mov byte [esp + 0x10], cl
cmp cl, 0xa
jne 0x45ab51
mov al, 0xd
jmp 0x45ac0f
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanExA]
movzx eax, ax
mov ecx, eax
shr ecx, 8
cmp cl, 0xff
jne 0x45ac0f
cmp al, 0xff
jne 0x45ac0f
xor al, al
jmp 0x45ac0f
movzx esi, cl
test esi, 0xffffff80
jne 0x45ab9a
push 2
push esi
call fcn.0047814e
add esp, 8
test eax, eax
je 0x45ab9a
and esi, 0xffffffdf
mov eax, esi
cmp al, 0x56
jne 0x45abd6
movzx esi, byte [edi + 1]
test esi, 0xffffff80
jne 0x45abbe
push 2
push esi
call fcn.0047814e
add esp, 8
test eax, eax
je 0x45abbe
and esi, 0xffffffdf
mov eax, esi
cmp al, 0x4b
jne 0x45abd6
push 0x10
lea edx, [edi + 2]
push 0
push edx
call fcn.00478594
add esp, 0xc
jmp 0x45ac0f
xor esi, esi
jmp 0x45abe0
mov eax, dword [esi*8 + 0x49e108]
push edi
push eax
call fcn.00476cb6
add esp, 8
test eax, eax
je 0x45ac20
inc esi
cmp esi, 0x6d
jl 0x45abe0
mov eax, edi
call 0x410e90
movzx ecx, ax
test cx, cx
je 0x45ac17
call fcn.004115c0
mov byte [esp + 0x10], al
test al, al
jne 0x45ac29
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov al, byte [esi*8 + 0x49e10c]
jmp 0x45ac0f
mov eax, edi
call 0x410e90
movzx eax, ax
test ax, ax
jne 0x45ac4e
mov ecx, dword [esp + 0x10]
push ecx
xor bl, bl
call fcn.00411340
mov bl, byte [esp + 0x13]
add esp, 4
movzx eax, ax
test eax, 0x100
je 0x45ac58
or bl, 8
movzx edx, byte [esp + 0x10]
movzx eax, bl
pop edi
shl eax, 8
pop esi
or eax, edx
pop ebx
add esp, 8
ret
Function at 0x45ac70
Capabilities:
Get keyboard layout
Log keystrokes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
mov eax, ebx
push esi
shr eax, 8
push edi
mov esi, ebp
test al, 1
je 0x45ac8e
mov byte [ebp], 0x2b
lea esi, [ebp + 1]
test al, 2
je 0x45ac96
mov byte [esi], 0x5e
inc esi
test al, 4
je 0x45ac9e
mov byte [esi], 0x21
inc esi
test al, 8
je 0x45acee
push ebx
xor bl, bl
call fcn.00411340
mov ecx, dword [esp + 0x18]
push ecx
mov bl, 1
movzx edi, ax
call fcn.00411340
movzx eax, ax
add esp, 8
mov ecx, eax
test eax, 0x100
jne 0x45acca
mov ecx, edi
test ecx, 0x100
je 0x45acea
cmp di, ax
je 0x45acea
mov eax, 0x64
mov edx, esi
call 0x410e30
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
mov ebx, dword [esp + 0x14]
xor eax, eax
cmp byte [eax*8 + 0x49e10c], bl
je 0x45ad4c
inc eax
cmp eax, 0x6d
jl 0x45acf0
push 0x64
push ebx
xor eax, eax
call fcn.00411260
add esp, 8
cmp byte [esi], 0
je 0x45ad74
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 1
mov ecx, eax
push 0
xor edx, edx
mov eax, esi
call 0x410f30
add esp, 8
test al, al
jne 0x45ad74
movzx edi, bl
push 2
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov byte [esi], al
test al, al
je 0x45ad65
pop edi
mov byte [esi + 1], 0
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
mov edx, dword [eax*8 + 0x49e108]
push 0x63
push edx
push esi
call fcn.0047a8e0
add esp, 0xc
mov byte [esi + 0x63], 0
jmp 0x45ad0c
push edi
push str.vk_02X
push esi
call fcn.00477162
add esp, 0xc
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x45b9d0
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x10
movzx eax, byte [esi + 4]
push ebp
mov ebp, dword [esp + 0x18]
add eax, 0xfffffff7
push edi
mov dword [esp + 8], SysReAllocString
cmp eax, 8
ja case.0x45b9f1.12
jmp dword [eax*4 + 0x45baf0]
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x19f
push eax
call edi
cmp eax, 0xffffffff
je 0x45ba9e
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push eax
push 0x198
push edx
call edi
jmp 0x45ba9e
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0xffffffffffffffff
push 0x100c
push eax
call edi
cmp eax, 0xffffffff
je 0x45ba9e
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push eax
push 0x100e
push edx
mov dword [esp + 0x18], 2
call edi
jmp 0x45ba9e
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 9
push 0x110a
push eax
call edi
test eax, eax
je 0x45ba9e
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push 1
push 0x1104
push edx
mov dword [esp + 0x18], eax
call edi
jmp 0x45ba9e
mov ecx, dword [esi]
lea eax, [esp + 8]
push eax
push 0
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esp + 8], 0x80000000
jne 0x45bab8
mov eax, dword [esi]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x45baca
mov edx, dword [esi]
push 2
lea ecx, [esp + 0xc]
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [ebp], eax
mov eax, dword [esp + 0x14]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
lea ecx, [eax + ecx + 2]
pop edi
mov dword [ebp + 4], ecx
pop ebp
add esp, 0x10
ret 4

Function at 0x4613f0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
mov esi, dword [esp + 0x120]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
push esi
mov dword [esp + 0x30], 0xff
call edi
cmp eax, 0x103
je 0x4614a2
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x2c]
push ecx
push esi
call ebp
test eax, eax
jne 0x4614af
mov edx, dword [esp + 0x14]
push edx
call fcn.004613f0
mov bl, al
mov eax, dword [esp + 0x18]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x4614af
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x4614af
lea edx, [esp + 0x18]
push edx
push eax
push eax
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
push ecx
push 0
push esi
mov dword [esp + 0x30], 0xff
call edi
cmp eax, 0x103
jne 0x461436
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x110
ret
Function at 0x461e40
Capabilities:
Clear file content

Disassembly:
mov eax, dword [esi + 0x20]
push ebx
push ebp
xor ebp, ebp
push edi
cmp eax, ebp
je 0x461e6f
sub eax, dword [esi + 0x24]
mov edi, dword [esi]
sub eax, dword [esi + 8]
push 1
cdq
xor ecx, ecx
push edx
mov edx, dword [edi + 0x14]
mov word [esi + 0x1a], cx
push eax
mov ecx, esi
mov dword [esi + 0x1c], ebp
call edx
mov dword [esi + 0x20], ebp
mov dword [esi + 8], ebp
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esi]
push ebp
mov ebx, edx
mov edx, dword [eax + 0x14]
push ecx
mov ecx, esi
call edx
test al, al
je 0x461ed6
mov eax, dword [esi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x461ed6
cmp ebp, ebx
jg 0x461eb6
jl 0x461eae
cmp dword [esp + 0x10], edi
jae 0x461eb6
mov eax, dword [esp + 0x10]
mov ecx, ebp
jmp 0x461eba
mov eax, edi
mov ecx, ebx
mov edx, dword [esi]
push 0
push ecx
push eax
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
pop edi
pop ebp
pop ebx
ret 8
pop edi
or eax, 0xffffffff
pop ebp
or edx, eax
pop ebx
ret 8

Function at 0x465330
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x8000
call fcn.00488480
push esi
push 0x7fff
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x46536e
lea edx, [esi + 1]
push edx
lea eax, [esp + 8]
push eax
push edi
call fcn.0047b470
add esp, 0xc
mov eax, esi
pop esi
add esp, 0x8000
ret
mov byte [edi], 0
pop esi
add esp, 0x8000
ret
Function at 0x469290
Capabilities:
Check for time delay via gettickcount

Disassembly:
test esi, esi
je 0x4692e6
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
push 1
push 0x8000012f
mov ebx, eax
call fcn.00401340
mov edi, dword [sym.imp.USER32.dll_IsWindow]
jl 0x469267
dec eax
add byte [ebx - 0xa9f73c], al
xlatb
jl 0x469267
dec eax
add byte [ebx - 0xa9f73c], al
xlatb
test eax, eax
je 0x4692c5
mov edi, edi
call ebp
lea ecx, [ebx + 0x1f4]
sub ecx, eax
cmp ecx, 5
jle 0x4692c5
push 1
push 0x8000012f
call fcn.00401340
add esp, 8
push esi
call edi
test eax, eax
jne 0x4692a0
mov edx, dword [0x49d3c8]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x4692de
push 1
push eax
call fcn.00401340
add esp, 8
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x469300
mov ecx, dword [esp + 0x1c]
push 0
push ecx
push edi
call fcn.00469320
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov edx, dword [esp + 0x1c]
push edx
mov ecx, edi
call fcn.00469490
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8

Function at 0x469490
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8960
call fcn.00488480
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 8], ebx
je 0x469610
xor cl, cl
mov eax, edi
call fcn.00469630
test eax, eax
jne 0x4694c5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8960
ret 4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
mov eax, dword [0x49d3c8]
push eax
push ebp
mov ecx, edi
call fcn.004696c0
test eax, eax
je 0x4694e8
xor eax, eax
mov dword [0x4a2bb0], eax
jmp 0x4694ed
mov eax, dword [0x4a2bb0]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x824], 0x49588a
mov dword [esp + 0x844], ebx
mov dword [esp + 0x848], ebx
mov dword [esp + 0x84c], ebx
mov dword [esp + 0x864], ebx
mov dword [esp + 0x868], ebx
cmp byte [esp + 0x8974], bl
je 0x469533
mov byte [esp + 0x840], bl
cmp eax, ebx
je 0x46953b
mov byte [esp + 0x840], 1
mov ecx, dword [0x4a2bac]
mov edx, dword [edi + 8]
mov esi, dword [sym.imp.USER32.dll_EnumWindows]
mov dword [esp + 0x854], eax
lea eax, [esp + 0x18]
push eax
push 0x469790
mov dword [esp + 0x858], ecx
mov dword [esp + 0x860], edx
call esi
mov eax, dword [esp + 0x848]
cmp eax, ebx
je 0x4695e8
lea ecx, [esp + 0x10]
push ecx
push 0x468590
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
call esi
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x4695a5
mov edx, dword [esp + 0x848]
call fcn.00468f70
mov dword [esp + 0x848], esi
mov eax, dword [esp + 0x848]
call fcn.00467640
mov edx, dword [esp + 0x848]
call fcn.00468f70
mov edx, dword [0x49d3c8]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x469610
push 1
push eax
call fcn.00401340
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8960
ret 4
mov eax, dword [0x4a2bb0]
cmp eax, ebx
je 0x469610
cmp eax, 1
setg al
mov dword [0x4a2bb0], ebx
cmp al, bl
je 0x469610
mov edx, ebp
call fcn.00468f70
push ebx
mov ecx, edi
call fcn.00469490
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x8960
ret 4
Function at 0x470da0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x124
push ebx
push ebp
mov ebp, dword [esp + 0x144]
mov eax, dword [ebp]
push esi
push edi
cmp eax, dword [ebp + 4]
jae 0x4735e0
mov edi, dword [esp + 0x138]
Function at 0x4759ff
Capabilities:
Read file on windows

Disassembly:
clc
pop ecx
inc edi
add byte [ebx - 0x3dfbdbbc], cl
add al, 0
push ebp
mov ebp, esp
sub esp, 0x540
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x540]
call fcn.0047608e
lea eax, [ebp - 0x13c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x13c]
push 0x49c010
push eax
call fcn.0047a3c6
pop ecx
mov dword [esi], eax
test eax, eax
pop ecx
jne 0x475a4d
push 1
pop eax
jmp 0x475bdd
xor eax, eax
mov cl, byte [eax + 0x49c008]
mov byte [ebp + eax - 0x24], cl
mov cl, byte [eax + section..data]
mov byte [ebp + eax - 0x1c], cl
inc eax
cmp eax, 8
jl 0x475a4f
mov edi, dword [ebp + 0xc]
push edi
call fcn.0047b350
and dword [esi + 0x110], 0
pop ecx
lea ecx, [esi + 0x110]
xor edx, edx
test eax, eax
jle 0x475a91
movsx ebx, byte [edx + edi]
add dword [ecx], ebx
inc edx
cmp edx, eax
jl 0x475a86
push 2
push 0xfffffffffffffff8
push dword [esi]
call fcn.0047b2c8
push dword [esi]
lea edi, [esi + 4]
push 1
pop ebx
push ebx
push 4
push edi
call fcn.0047b221
push dword [esi]
call fcn.0047af72
push dword [esi]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push ebx
push 4
push eax
call fcn.0047b221
push 0
push 0
push dword [esi]
call fcn.0047b2c8
and dword [ebp + 0xc], 0
add esp, 0x3c
cmp dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
jle 0x475b10
mov ecx, dword [esi]
test byte [ecx + 0xc], 0x10
jne 0x475b10
push ecx
push ebx
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.0047b221
add esp, 0x10
lea ecx, [ebp - 0x540]
push dword [ebp - 0x14]
call fcn.004760cd
inc dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 8]
jl 0x475ae0
xor eax, 0xaaaaaaaa
cmp dword [ebp - 0x10], eax
jne 0x475b51
push 0
push dword [edi]
push dword [esi]
call fcn.0047b2c8
push dword [esi]
lea eax, [ebp - 0x34]
push ebx
push 0x10
push eax
call fcn.0047b221
add esp, 0x1c
test eax, eax
je 0x475b51
xor eax, eax
mov cl, byte [ebp + eax - 0x34]
cmp cl, byte [ebp + eax - 0x24]
jne 0x475b4c
inc eax
cmp eax, 0x10
jl 0x475b3c
cmp eax, 0x10
je 0x475b55
push 3
jmp 0x475b6d
push dword [esi]
lea eax, [ebp - 1]
push ebx
push ebx
push eax
call fcn.0047b221
add esp, 0x10
cmp byte [ebp - 1], 3
je 0x475b7a
push 4
pop edi
push dword [esi]
call fcn.0047a61b
pop ecx
mov eax, edi
jmp 0x475bdd
push dword [esi]
lea eax, [ebp - 0xc]
push ebx
push 4
push eax
call fcn.0047b221
mov edi, dword [ebp - 0xc]
push dword [esi]
xor edi, 0xfac1
lea ebx, [esi + 0xc]
push edi
push 1
push ebx
call fcn.0047b221
add esp, 0x20
lea eax, [edi + 0xc3d2]
mov ecx, esi
push eax
push edi
push ebx
call fcn.00475bf2
and byte [edi + esi + 0xc], 0
lea eax, [esi + 0x110]
xor ecx, ecx
cmp edi, ecx
mov dword [eax], ecx
jle 0x475bd0
movsx edx, byte [ebx + ecx]
add dword [eax], edx
inc ecx
cmp ecx, edi
jl 0x475bc5
push dword [esi]
call fcn.0047af72
mov dword [esi + 8], eax
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x475bf2
Capabilities:
Encode data using xor

Disassembly:
push edi
push dword [esp + 0x10]
call fcn.00411710
xor edi, edi
pop ecx
cmp dword [esp + 0xc], edi
jbe 0x475c1c
push esi
mov eax, dword [esp + 0xc]
lea esi, [edi + eax]
call fcn.00411880
xor byte [esi], al
inc edi
cmp edi, dword [esp + 0x10]
jb 0x475c06
pop esi
pop edi
ret 0xc

Function at 0x475f02
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
push 1
pop ebx
mov esi, ecx
mov byte [ebp - 1], bl
push dword [esi]
lea eax, [ebp - 0x14]
push 4
push ebx
push eax
call fcn.0047b221
add esp, 0x10
lea eax, [ebp - 0x14]
mov ecx, esi
push 0x16fa
push 4
push eax
call fcn.00475bf2
and byte [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push str.FILE
push eax
call fcn.0047b3e0
pop ecx
test eax, eax
pop ecx
jne 0x476033
push dword [esi]
lea eax, [ebp - 0xc]
push ebx
push 4
push eax
call fcn.0047b221
mov edi, dword [ebp - 0xc]
push dword [esi]
xor edi, 0x29bc
lea eax, [ebp - 0x11c]
push edi
push ebx
push eax
call fcn.0047b221
add esp, 0x20
lea eax, [edi + 0xa25e]
mov ecx, esi
push eax
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.00475bf2
push dword [esi]
and byte [ebp + edi - 0x11c], 0
lea eax, [ebp - 0xc]
push ebx
push 4
push eax
call fcn.0047b221
mov edi, dword [ebp - 0xc]
push dword [esi]
xor edi, 0x29ac
push edi
push ebx
push dword [ebp + 0xc]
call fcn.0047b221
add esp, 0x20
lea eax, [edi + 0xf25e]
mov ecx, esi
push eax
push edi
push dword [ebp + 0xc]
call fcn.00475bf2
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
and byte [edi + eax], 0
lea eax, [ebp - 0x11c]
push eax
call fcn.0047b3e0
pop ecx
test eax, eax
pop ecx
je 0x47604a
push ebx
push ebx
push dword [esi]
call fcn.0047b2c8
push dword [esi]
lea eax, [ebp - 8]
push ebx
push 4
push eax
call fcn.0047b221
xor dword [ebp - 8], 0x45aa
push ebx
push 4
push dword [esi]
call fcn.0047b2c8
push ebx
push 0x10
push dword [esi]
call fcn.0047b2c8
push ebx
push dword [ebp - 8]
push dword [esi]
call fcn.0047b2c8
add esp, 0x40
jmp 0x476037
and byte [ebp - 1], 0
cmp byte [ebp - 1], bl
je 0x475f16
push 6
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
xor eax, eax
jmp 0x476043

Function at 0x47608e
Capabilities:
Hash data using crc32b

Disassembly:
mov eax, ecx
push esi
push edi
mov edi, eax
or dword [eax + 0x400], 0xffffffff
xor esi, esi
mov edx, esi
push 8
shl edx, 0x18
pop ecx
test edx, 0x80000000
je 0x4760b7
add edx, edx
xor edx, 0x4c11db7
jmp 0x4760b9
shl edx, 1
dec ecx
jne 0x4760a5
mov dword [edi], edx
inc esi
add edi, 4
cmp esi, 0x100
jl 0x47609d
pop edi
pop esi
ret
Function at 0x476241
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x14], 1
jne 0x476266
mov eax, dword [esi + 0xc]
push 8
add eax, dword [esi + 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0047b470
add esp, 0xc
jmp 0x476279
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.0047b221
add esp, 0x10
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 3]
shl eax, 8
or eax, ecx
add dword [esi + 0xc], 8
movzx ecx, byte [ebp - 2]
shl eax, 8
or eax, ecx
and byte [ebp - 4], 0
movzx ecx, byte [ebp - 1]
shl eax, 8
or eax, ecx
mov ecx, dword [ebp + 8]
push str.JB01
mov dword [ecx], eax
lea eax, [ebp - 8]
push eax
call fcn.0047b3e0
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
pop esi
leave
ret 4

Function at 0x47f404
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x49cdb0]
jne 0x47f40e
repz ret
jmp fcn.00487498

Function at 0x485290
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x4851e2
push eax
call fcn.004785bf
pop ecx
mov eax, dword [ebp - 0x14]
cmp eax, 0xfffffffe
jne 0x485379
mov eax, dword [ebp - 0xc]
jmp 0x485379
mov eax, dword [ebp + 0x10]
movzx ecx, word [eax]
cmp ecx, 0x1a
je 0x48531d
cmp ecx, 0xd
je 0x48525a
mov word [ebx], cx
add ebx, 2
add eax, 2
mov dword [ebp + 0x10], eax
jmp 0x48530f
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffffe
cmp eax, ecx
jae 0x485282
lea ecx, [eax + 2]
cmp word [ecx], 0xa
jne 0x48527a
add eax, 4
mov dword [ebp + 0x10], eax
push 0xa
jmp 0x485308
mov dword [ebp + 0x10], ecx
jmp 0x485306
add dword [ebp + 0x10], 2
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 8]
clc
clc
push eax
mov eax, dword [edi]
push dword [esi + eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4852ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x485306
cmp dword [ebp - 0x18], 0
je 0x485306
mov eax, dword [edi]
test byte [esi + eax + 4], 0x48
je 0x4852e2
cmp word [ebp - 8], 0xa
je 0x485273
push 0xd
pop eax
mov word [ebx], ax
mov eax, dword [edi]
mov cl, byte [ebp - 8]
mov byte [esi + eax + 5], cl
mov eax, dword [edi]
mov cl, byte [ebp - 7]
mov byte [esi + eax + 0x25], cl
mov eax, dword [edi]
mov byte [esi + eax + 0x26], 0xa
jmp 0x48530c
cmp ebx, dword [ebp - 0x10]
jne 0x4852ee
cmp word [ebp - 8], 0xa
je 0x485273
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004859ac
add esp, 0x10
cmp word [ebp - 8], 0xa
je 0x48530f
push 0xd
pop eax
mov word [ebx], ax
add ebx, 2
mov eax, dword [ebp - 0xc]
cmp dword [ebp + 0x10], eax
jb 0x485235
jmp 0x485336
mov ecx, dword [edi]
lea esi, [esi + ecx + 4]
test byte [esi], 0x40
jne 0x48532d
or byte [esi], 2
jmp 0x485336
mov ax, word [eax]
mov word [ebx], ax
add ebx, 2
sub ebx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ebx
jmp 0x4851d3
pop edi
pop ebx
pop esi
leave
ret