joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410bf0
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x4e0214]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
push esi
push edi
push 0x48
push eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x60]
push eax
mov esi, ecx
mov byte [ebp - 0x14], 0
call fcn.0047c5e0
xor eax, eax
add esp, 0xc
mov byte [ebp - 0x74], 0
mov word [ebp - 0x73], ax
mov byte [ebp - 0x71], al
test esi, esi
je 0x410c87
push 0x4d08b0
push esi
call fcn.00479239
mov edi, eax
add esp, 8
test edi, edi
je 0x410c87
push 2
push 0
push edi
call fcn.0047b0be
push edi
call fcn.0047b2ce
mov esi, eax
push esi
call fcn.0047ab13
mov ebx, eax
add esp, 0x14
xor eax, eax
push edi
cmp ebx, eax
jne 0x410c9a
call fcn.0047a0bb
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004790f7
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x70], 0x67452301
mov dword [ebp - 0x6c], 0xefcdab89
mov dword [ebp - 0x68], 0x98badcfe
mov dword [ebp - 0x64], 0x10325476
call fcn.0047b333
push edi
push esi
push 1
push ebx
call fcn.0047b658
push ebx
lea esi, [ebp - 0x70]
call fcn.00410340
push edi
call fcn.0047a0bb
push ebx
call fcn.0047aba7
mov ecx, esi
lea ebx, [ebp - 0x14]
call fcn.004103f0
push 0x21
call fcn.0047ab13
mov ebx, eax
xor eax, eax
add esp, 0x24
cmp ebx, eax
je 0x410c87
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
mov byte [ebx + 0x20], al
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
movzx edx, byte [ebp + ecx - 0x14]
push edx
lea eax, [ebp - 0x74]
push str._02X
push eax
call fcn.0047acf4
lea eax, [ebp - 0x74]
add esp, 0xc
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410d38
sub eax, esi
lea edi, [ebx - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x410d44
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x78]
inc eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x78], eax
cmp eax, 0x10
jl 0x410d19
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004790f7
mov esp, ebp
pop ebp
ret
Function at 0x4111e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b529c
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x4e0214]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x11c], ecx
push str.click
mov ecx, esi
call fcn.00478277
push eax
call fcn.0047a325
add esp, 8
test eax, eax
jne 0x4113d2
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
lea edx, [ebp - 0x94]
push edx
call eax
push str.btn_close
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00478277
push eax
call fcn.0047a325
add esp, 8
test eax, eax
sete bl
or edi, 0xffffffff
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], edi
call fcn.0043d9a3
test bl, bl
je 0x41129d
mov eax, dword [ebp - 0x11c]
push 1
lea ecx, [eax - 0x20]
mov dword [eax + 0x37c], 8
call fcn.00438583
jmp 0x4113d2
mov ecx, dword [esi + 0x108]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [ebp - 0x94]
push eax
call edx
push str.btn_ok
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.00478277
push eax
call fcn.0047a325
add esp, 8
test eax, eax
lea ecx, [ebp - 0x94]
sete bl
mov dword [ebp - 4], edi
call fcn.0043d9a3
test bl, bl
je 0x411303
mov eax, dword [ebp - 0x11c]
push 1
lea ecx, [eax - 0x20]
mov dword [eax + 0x37c], 6
call fcn.00438583
jmp 0x4113d2
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
lea edx, [ebp - 0x94]
push edx
call eax
push str.btn_no
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.00478277
push eax
call fcn.0047a325
add esp, 8
test eax, eax
lea ecx, [ebp - 0x94]
sete bl
mov dword [ebp - 4], edi
call fcn.0043d9a3
test bl, bl
je 0x411366
mov eax, dword [ebp - 0x11c]
push 1
lea ecx, [eax - 0x20]
mov dword [eax + 0x37c], 7
call fcn.00438583
jmp 0x4113d2
mov ecx, dword [esi + 0x108]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [ebp - 0x118]
push eax
call edx
push str.btn_link
mov ecx, eax
mov dword [ebp - 4], 3
call fcn.00478277
push eax
call fcn.0047a325
add esp, 8
test eax, eax
lea ecx, [ebp - 0x118]
sete bl
mov dword [ebp - 4], edi
call fcn.0043d9a3
test bl, bl
je 0x4113d2
mov ecx, dword [ebp - 0x11c]
push 1
push 0
push 0
add ecx, 0x380
call fcn.00478277
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004790f7
mov esp, ebp
pop ebp
ret 4
Function at 0x411b00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b72b0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4e0214]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov esi, 8
cmp dword [ebp + 0x1c], esi
jae 0x411b42
lea eax, [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x411b78
push ebx
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
push 0x4d2b87
mov ecx, edi
mov byte [edi], bl
call fcn.00403f80
cmp dword [ebp + 0x1c], esi
jb 0x411c3b
mov eax, dword [ebp + 8]
push eax
jmp 0x411c33
xor eax, eax
mov esi, 0xf
mov byte [ebp - 0x34], bl
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x50], bl
mov byte [ebp - 4], 1
cmp dword [ebp + 0x1c], 8
mov ecx, dword [ebp + 8]
jae 0x411bb3
lea ecx, [ebp + 8]
call fcn.00410bf0
cmp eax, ebx
je 0x411bfb
lea esi, [ebp - 0x34]
mov ecx, eax
sub esi, eax
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
cmp dl, bl
jne 0x411bc3
push eax
call fcn.0047aba7
lea eax, [ebp - 0x34]
add esp, 4
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x411be0
sub eax, edx
push eax
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x50]
call fcn.00403f80
mov esi, 0xf
lea edx, [ebp - 0x50]
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
push edx
mov ecx, edi
mov byte [edi], bl
call fcn.0040a1d0
cmp dword [ebp - 0x3c], 0x10
jb 0x411c20
mov eax, dword [ebp - 0x50]
push eax
call fcn.004790ec
add esp, 4
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x50], bl
jb 0x411c3b
mov ecx, dword [ebp + 8]
push ecx
call fcn.004790ec
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004790f7
mov esp, ebp
pop ebp
ret
Function at 0x414b60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4e0214]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [esi + 0xd8]
sub ecx, dword [esi + 0xd4]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
push ebx
shr eax, 0x1f
xor ebx, ebx
add eax, edx
je 0x414c16
push edi
xor edi, edi
jmp 0x414ba0
mov eax, dword [esi + 0xd4]
xor ecx, ecx
add eax, edi
push ecx
mov word [ebp - 0x20], cx
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
call fcn.00403470
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x414bd5
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0xc], 8
jb 0x414bee
mov edx, dword [ebp - 0x20]
push edx
call fcn.004790ec
add esp, 4
mov ecx, dword [esi + 0xd8]
sub ecx, dword [esi + 0xd4]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
add edi, 0x1c
cmp ebx, eax
jb 0x414ba0
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004790f7
mov esp, ebp
pop ebp
ret
Function at 0x416f50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7759
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x4e0214]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x44
xor edi, edi
lea eax, [ebp - 0x1b8]
push edi
push eax
mov esi, ecx
call fcn.0047c5e0
xor eax, eax
add esp, 0xc
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x1b8], 0x44
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x160], eax
call fcn.0043d97b
push esi
lea ecx, [ebp - 0x158]
push str.__s_
push ecx
mov dword [ebp - 4], edi
call fcn.0043dddc
add esp, 0xc
lea edx, [ebp - 0x16c]
push edx
lea eax, [ebp - 0x1b8]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x417123
lea ecx, [ebp - 0xd0]
call fcn.0043d97b
mov byte [ebp - 4], 1
xor ecx, ecx
push 0x11
mov eax, str.cmd_open_failed_d
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], cx
call fcn.00403870
mov bl, 2
mov byte [ebp - 4], bl
test byte [0x4e494c], 1
jne 0x41706b
or dword [0x4e494c], 1
lea edx, [ebp - 0x159]
push edx
mov byte [ebp - 4], 3
call fcn.00401e10
mov byte [ebp - 4], 4
call fcn.004013f0
push 0x4b86b0
call fcn.004793ba
add esp, 4
mov byte [ebp - 4], bl
lea eax, [ebp - 0x48]
push eax
lea edx, [ebp - 0x2c]
mov ecx, 0x4e48fc
call fcn.00401890
mov ebx, 8
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], ebx
jb 0x41708e
mov esi, dword [eax]
jmp 0x417090
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xd0]
push esi
push ecx
call fcn.0043dddc
add esp, 0xc
cmp dword [ebp - 0x34], ebx
jb 0x4170b8
mov edx, dword [ebp - 0x48]
push edx
call fcn.004790ec
add esp, 4
xor eax, eax
mov esi, 7
mov byte [ebp - 4], 1
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x18], ebx
jb 0x4170de
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004790ec
add esp, 4
xor edx, edx
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
call fcn.00478277
push eax
call fcn.00405300
add esp, 4
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0
call fcn.0043d9a3
lea ecx, [ebp - 0x158]
mov dword [ebp - 4], 0xffffffff
call fcn.0043d9a3
xor eax, eax
jmp 0x417152
mov eax, dword [ebp - 0x16c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0x168]
push ecx
call esi
lea ecx, [ebp - 0x158]
mov dword [ebp - 4], 0xffffffff
call fcn.0043d9a3
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004790f7
mov esp, ebp
pop ebp
ret
Function at 0x417170
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x4e0214]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
push 0
push 2
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x438], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4171b9
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004790f7
mov esp, ebp
pop ebp
ret
push ebx
push esi
lea ecx, [ebp - 0x438]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x417257
mov ebx, dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
mov edx, dword [ebp - 0x430]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x417245
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0047c5e0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0
push esi
call ebx
test eax, eax
je 0x41723e
mov ecx, dword [ebp - 0x43c]
lea eax, [ebp - 0x20c]
push eax
push ecx
call fcn.0047a325
add esp, 8
test eax, eax
je 0x417271
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x438]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4171d7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004790f7
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x430]
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.004790f7
mov esp, ebp
pop ebp
ret
Function at 0x417320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.0047e4b0
mov eax, dword [0x4e0214]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x100c]
push eax
push 0x20019
push 0
push str.SOFTWAREWOW6432Nodei4Tool
mov dword [ebp - 0x1008], 0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x1008], 1
mov dword [ebp - 0x1010], 0x800
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4173e2
push esi
lea ecx, [ebp - 0x1010]
push ecx
mov ecx, dword [ebp - 0x100c]
lea edx, [ebp - 0x1004]
push edx
lea eax, [ebp - 0x1008]
push eax
push 0
push str.GUID
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4173b9
push edi
mov ecx, 0x200
mov esi, 0x4d131c
lea edi, [ebp - 0x804]
rep movsd dword es:[edi], dword [esi]
pop edi
mov esi, dword [ebp - 0x1010]
xor eax, eax
test esi, esi
je 0x4173e1
lea ecx, [ebp - 0x804]
jmp 0x4173d0
mov dl, byte [ebp + eax - 0x1004]
mov byte [ecx], dl
add eax, 2
inc ecx
cmp eax, esi
jb 0x4173d0
pop esi
mov eax, dword [ebp - 0x100c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x804]
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417410
sub eax, edx
push eax
lea ecx, [ebp - 0x804]
push ecx
mov ecx, ebx
call fcn.00403f80
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, ebx
call fcn.004790f7
mov esp, ebp
pop ebp
ret
Function at 0x417660
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b721c
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x4e0214]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x484], ebx
mov dword [ebp - 0x434], 0xf
push 0x400
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x410]
push ebx
push eax
mov dword [ebp - 0x438], ebx
mov byte [ebp - 0x448], bl
mov dword [ebp - 0x484], ebx
call fcn.0047c5e0
lea ecx, [ebp - 0x480]
call fcn.00408d00
push eax
mov eax, str._source.dat
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 1
call fcn.0041d060
add esp, 0x10
mov edi, 8
mov byte [ebp - 4], 3
cmp dword [ebp - 0x46c], edi
jb 0x417709
mov ecx, dword [ebp - 0x480]
push ecx
call fcn.004790ec
add esp, 4
mov eax, dword [ebp - 0x42c]
xor edx, edx
mov dword [ebp - 0x46c], 7
mov dword [ebp - 0x470], ebx
mov word [ebp - 0x480], dx
cmp dword [ebp - 0x418], edi
jae 0x417736
lea eax, [ebp - 0x42c]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4177b8
lea eax, [ebp - 0x448]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov byte [esi], bl
call fcn.0040a1d0
cmp dword [ebp - 0x418], 8
jb 0x417786
mov ecx, dword [ebp - 0x42c]
push ecx
call fcn.004790ec
add esp, 4
xor edx, edx
cmp dword [ebp - 0x434], 0x10
mov dword [ebp - 0x418], 7
mov dword [ebp - 0x41c], ebx
mov word [ebp - 0x42c], dx
jb 0x4178ba
mov eax, dword [ebp - 0x448]
push eax
jmp 0x4178b2
push ebx
lea ecx, [ebp - 0x484]
push ecx
push 0x400
lea edx, [ebp - 0x410]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4177e3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x417754
lea eax, [ebp - 0x410]
mov dword [ebp - 0x450], 0xf
mov dword [ebp - 0x454], ebx
mov byte [ebp - 0x464], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x417802
sub eax, edx
push eax
lea ecx, [ebp - 0x410]
push ecx
lea ecx, [ebp - 0x464]
call fcn.00403f80
lea edx, [ebp - 0x464]
push edx
lea ecx, [ebp - 0x448]
mov byte [ebp - 4], 4
call fcn.0040a1d0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x450], 0x10
jb 0x417850
mov eax, dword [ebp - 0x464]
push eax
call fcn.004790ec
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x448]
push ecx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov ecx, esi
mov byte [esi], bl
call fcn.0040a1d0
cmp dword [ebp - 0x418], 8
jb 0x417889
mov edx, dword [ebp - 0x42c]
push edx
call fcn.004790ec
add esp, 4
xor eax, eax
cmp dword [ebp - 0x434], 0x10
mov dword [ebp - 0x418], 7
mov dword [ebp - 0x41c], ebx
mov word [ebp - 0x42c], ax
jb 0x4178ba
mov ecx, dword [ebp - 0x448]
push ecx
call fcn.004790ec
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004790f7
mov esp, ebp
pop ebp
ret
Function at 0x4230e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
cmp ebx, eax
jne 0x423103
mov dword [edi + 8], eax
mov dword [edi + 4], eax
mov dword [edi], 1
mov eax, edi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 4]
push eax
mov esi, ebx
call fcn.00423070
mov esi, eax
add esp, 4
test esi, esi
je 0x423136
push ebx
call fcn.0047a0bb
add esp, 4
xor eax, eax
mov dword [edi], esi
pop esi
mov dword [edi + 8], eax
mov dword [edi + 4], eax
mov eax, edi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 4]
lea eax, [ebx + 1]
push eax
mov dword [ebp - 8], eax
call dword [0x4e1be0]
mov esi, eax
add esp, 4
test esi, esi
jne 0x423171
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0047a0bb
add esp, 4
xor eax, eax
pop esi
mov dword [edi + 8], eax
mov dword [edi + 4], eax
mov dword [edi], 3
mov eax, edi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
push edx
push ebx
push 1
push esi
call fcn.0047b658
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.0047a0bb
add esp, 0x14
cmp dword [ebp - 4], ebx
je 0x4231b2
push esi
call dword [0x4e1be4]
add esp, 4
xor eax, eax
pop esi
mov dword [edi + 8], eax
mov dword [edi + 4], eax
mov dword [edi], 2
mov eax, edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
push ebx
mov ecx, esi
call fcn.0041fbb0
add esp, 4
cmp eax, 1
jne 0x4231cc
mov byte [esi + ebx], 0
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
push ecx
push ebx
push esi
mov ebx, edi
call fcn.00426bd0
pop esi
mov eax, edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4233b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push ecx
push 1
push edx
call fcn.004795f3
add esp, 0x10
pop ebp
ret 8

Function at 0x42d120
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov cl, byte [esi]
xor eax, eax
mov edx, esi
test cl, cl
je 0x42d149
lea ecx, [ecx]
movsx ecx, cl
add eax, ecx
imul eax, eax, 0x401
mov ecx, eax
shr ecx, 6
inc edx
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x42d130
lea eax, [eax + eax*8]
mov edx, eax
shr edx, 0xb
xor edx, eax
mov eax, dword [ebp + 8]
and edx, 0x3f
mov eax, dword [eax + edx*4]
push ebx
test eax, eax
je 0x42d1b8
mov ecx, dword [eax]
dec ecx
cmp ecx, 3
ja case.default.0x42d169
jmp dword [ecx*4 + 0x42d1c0]
lea ecx, [eax + 0x1c]
jmp 0x42d186
lea ecx, [eax + 0x10]
jmp 0x42d186
lea ecx, [eax + 0xc]
jmp 0x42d186
lea ecx, [eax + 9]
jmp 0x42d186
xor ecx, ecx
mov edx, esi
mov bl, byte [ecx]
cmp bl, byte [edx]
jne 0x42d1a8
test bl, bl
je 0x42d1a4
mov bl, byte [ecx + 1]
cmp bl, byte [edx + 1]
jne 0x42d1a8
add ecx, 2
add edx, 2
test bl, bl
jne 0x42d188
xor ecx, ecx
jmp 0x42d1ad
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
je 0x42d1ba
mov eax, dword [eax + 4]
test eax, eax
jne 0x42d161
xor eax, eax
pop ebx
pop ebp
ret 4
Function at 0x42d1d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
mov cl, byte [ebx]
push esi
xor eax, eax
push edi
mov edx, ebx
test cl, cl
je 0x42d1fb
movsx ecx, cl
add eax, ecx
imul eax, eax, 0x401
mov ecx, eax
shr ecx, 6
inc edx
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x42d1e2
mov edx, dword [ebp + 8]
lea eax, [eax + eax*8]
mov edi, eax
shr edi, 0xb
xor edi, eax
and edi, 0x3f
mov esi, dword [edx + edi*4]
test esi, esi
je 0x42d270
mov eax, dword [esi]
dec eax
cmp eax, 3
ja case.default.0x42d21a
jmp dword [eax*4 + 0x42d2d8]
lea eax, [esi + 0x1c]
jmp 0x42d237
lea eax, [esi + 0x10]
jmp 0x42d237
lea eax, [esi + 0xc]
jmp 0x42d237
lea eax, [esi + 9]
jmp 0x42d237
xor eax, eax
mov ecx, ebx
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x42d260
test dl, dl
je 0x42d25c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x42d260
add eax, 2
add ecx, 2
test dl, dl
jne 0x42d240
xor eax, eax
jmp 0x42d265
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42d282
mov esi, dword [esi + 4]
test esi, esi
jne 0x42d212
mov esi, dword [ebp + 0xc]
lea eax, [esi - 1]
cmp eax, 3
ja case.default.0x42d27b
jmp dword [eax*4 + 0x42d2e8]
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp dword [esi], ecx
pop edi
setne al
dec eax
and eax, esi
pop esi
pop ebx
pop ebp
ret 8
push ebx
call fcn.004305a0
add esp, 4
test eax, eax
je 0x42d2b1
mov ecx, dword [ebp + 8]
mov dword [eax], esi
mov edx, dword [ecx + edi*4]
mov dword [eax + 4], edx
mov dword [ecx + edi*4], eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
call fcn.00430620
jmp 0x42d29f
push ebx
call fcn.00430680
jmp 0x42d29c
push ebx
call fcn.004306f0
jmp 0x42d29c
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8