joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101e1d20
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.100b00b8
mov eax, dword [0x1026e0c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x102755c8]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x141c], ecx
mov edx, dword [ebp - 0x141c]
cmp edx, dword [ebp - 0x1424]
jae 0x101e1f0b
lea eax, [ebp - 6]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1414], ecx
mov edx, dword [ebp - 0x1414]
cmp edx, dword [ebp - 0x1430]
jae 0x101e1e56
mov eax, dword [ebp - 0x141c]
cmp eax, dword [ebp - 0x1424]
jae 0x101e1e56
mov ecx, dword [ebp - 0x141c]
mov dx, word [ecx]
mov word [ebp - 0x141e], dx
mov eax, dword [ebp - 0x141c]
add eax, 2
mov dword [ebp - 0x141c], eax
mov cx, word [ebp - 0x141e]
mov word [ebp - 0x1418], cx
movzx edx, word [ebp - 0x1418]
cmp edx, 0xa
jne 0x101e1e32
mov eax, dword [ebp - 0x1408]
add eax, 2
mov dword [ebp - 0x1408], eax
mov ecx, 0xd
mov edx, dword [ebp - 0x1414]
mov word [edx], cx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
mov ecx, dword [ebp - 0x1414]
mov dx, word [ebp - 0x1418]
mov word [ecx], dx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
jmp 0x101e1da9
mov ecx, dword [ebp - 0x1414]
lea edx, [ebp - 0x1404]
sub ecx, edx
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x142c], ecx
push 0
lea eax, [ebp - 0x1428]
push eax
mov ecx, dword [ebp - 0x142c]
push ecx
lea edx, [ebp - 0x1404]
push edx
mov eax, dword [ebp - 0x1434]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x101e1ec4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x101e1f2b
mov eax, dword [ebp - 0x140c]
add eax, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], eax
mov ecx, dword [ebp - 0x1428]
cmp ecx, dword [ebp - 0x142c]
jae 0x101e1f06
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1410]
mov dword [edx], eax
mov ecx, dword [ebp - 0x140c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x1408]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
jmp 0x101e1f2b
jmp 0x101e1d82
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b16e8
mov esp, ebp
pop ebp
ret
Function at 0x840a530
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x84f4aba
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x184002c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.0847e6e3
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
test edi, edi
jne 0x840a5d6
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x1040079c
push eax
lea ecx, [ebp - 0x24]
call fcn.0849cb2a
push 0x1041b584
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.0849cd2d
push edi
push esi
call fcn.0847fa0f
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0849cd1e
mov esp, ebp
pop ebp
ret 4

Function at 0x840e380
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x84f4eb8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x184002c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [eax - 0xc]
test eax, eax
je 0x840e42d
mov edi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
lea ecx, [ebp - 0x14]
push 0
push 0
push ecx
push 0
push 1
push eax
push dword [ebp + 8]
call edi
test eax, eax
jne 0x840e3e9
mov eax, dword [esi]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x840e42f
push dword [ebp - 0x14]
mov ecx, esi
call fcn.08422a40
mov eax, dword [esi + 4]
mov ecx, dword [esi]
sub eax, ecx
jne 0x840e406
push str.invalid_vector_T__subscript
call fcn.0847ecf2
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x14]
push 0
push 0
push edx
push ecx
push 1
push dword [eax - 0xc]
push eax
call edi
test eax, eax
jne 0x840e42d
mov eax, dword [esi]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x840e42f
xor esi, esi
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x840e453
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0849cd1e
mov esp, ebp
pop ebp
ret
Function at 0x840ef60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x840ef75
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x840efb4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x840efb0
lea ebx, [ebx]
cmp esi, edx
jae 0x840efb4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x840efa0
cmp esi, edx
jb 0x840efb9
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x841b190
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x84f579b
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x184002c0]
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 + 0xc]
mov ebx, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x841b1d9
mov esi, ebx
lea ecx, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x841b1d0
sub esi, ecx
xor ecx, ecx
mov eax, esi
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.0849bb31
mov edi, eax
add esp, 4
test edi, edi
jne 0x841b3eb
sub esp, 0xc
mov dword [ebp - 0xcc], 0x73346948
mov ecx, esp
mov dword [ebp - 0xc8], 0x6d634350
mov dword [ebp - 0xc4], 0x35307961
mov dword [ebp - 0xc0], 0x2b675364
push dword [ebp - 0xd0]
mov dword [ebp - 0xbc], 0x32637950
mov dword [ebp - 0xb8], 0x74554349
mov dword [ebp - 0xb4], 0x34307a63
mov dword [ebp - 0xb0], 0x2f77434d
mov dword [ebp - 0xac], 0x7941584d
mov dword [ebp - 0xa8], 0x3555534d
mov dword [ebp - 0xa4], 0x6e385750
mov dword [ebp - 0xa0], 0x6b51534a
mov dword [ebp - 0x9c], 0x5573694c
mov dword [ebp - 0x98], 0x6f517948
mov dword [ebp - 0x94], 0x67314259
mov dword [ebp - 0x90], 0x63554165
mov dword [ebp - 0x8c], 0x74516859
mov dword [ebp - 0x88], 0x2b77434f
mov dword [ebp - 0x84], 0x4b495450
mov dword [ebp - 0x80], 0x6a737a50
mov dword [ebp - 0x7c], 0x6f414162
mov dword [ebp - 0x78], 0x67347748
mov dword [ebp - 0x74], 0x6d67514b
mov dword [ebp - 0x70], 0x4b34514c
mov dword [ebp - 0x6c], 0x366f6849
mov dword [ebp - 0x68], 0x7541434d
mov dword [ebp - 0x64], 0x62306850
mov dword [ebp - 0x60], 0x35556a4c
mov dword [ebp - 0x5c], 0x77497865
mov dword [ebp - 0x58], 0x30387850
mov dword [ebp - 0x54], 0x4e415264
mov dword [ebp - 0x50], 0x6a51444a
mov dword [ebp - 0x4c], 0x65734142
mov dword [ebp - 0x48], 0x714a774d
mov dword [ebp - 0x44], 0x69307961
mov dword [ebp - 0x40], 0x366b3246
mov dword [ebp - 0x3c], 0x3634784e
mov dword [ebp - 0x38], 0x6774434c
mov dword [ebp - 0x34], 0x6f305459
mov dword [ebp - 0x30], 0x74303350
mov dword [ebp - 0x2c], 0x3331544f
mov dword [ebp - 0x28], 0x4b4d7950
mov dword [ebp - 0x24], 0x59514866
mov dword [ebp - 0x20], 0x57384348
mov dword [ebp - 0x1c], 0x41495443
mov dword [ebp - 0x18], 0x67424141
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xcc]
push eax
push edi
call fcn.08405280
lea eax, [ebp - 0xe8]
push eax
call fcn.0840dab0
add esp, 0x10
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 4], edi
sub eax, ecx
jne 0x841b3be
push str.invalid_vector_T__subscript
call fcn.0847ecf2
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ecx
push eax
lea ecx, [ebp - 0xdc]
call fcn.0849cb2a
push 0x1041b584
lea eax, [ebp - 0xdc]
mov dword [ebp - 0xdc], vtable.std::runtime_error.0
push eax
call fcn.0849cd2d
push esi
push ebx
push edi
call fcn.0849d790
add esp, 0xc
mov byte [esi + edi], 0
mov eax, edi
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.0849cd1e
mov esp, ebp
pop ebp
ret
Function at 0x8426da0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x84f624b
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
push esi
push edi
mov eax, dword [0x184002c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x10]
mov esi, dword [ebp + 0xc]
push 0
push 0x104007b9
mov dword [edi + 0xc], eax
mov byte [edi + 0x44], 0
call fcn.084172a0
push esi
mov ecx, edi
call fcn.0842a2e0
push esi
mov ecx, edi
call fcn.0842c290
push esi
mov ecx, edi
call fcn.084293a0
sub esp, 0xc
mov dword [ebp - 0xe4], 0x53676955
mov ecx, esp
mov dword [ebp - 0xe0], 0x4749584e
lea eax, [ebp - 0xe]
mov dword [ebp - 0xdc], 0x38385266
mov dword [ebp - 0xd8], 0x366f7747
push dword [ebp - 0xe8]
mov dword [ebp - 0xd4], 0x735a7761
push eax
mov dword [ebp - 0xd0], 0x6c596d48
lea eax, [ebp - 0xe4]
mov dword [ebp - 0xcc], 0x68397850
mov dword [ebp - 0xc8], 0x584d5343
mov dword [ebp - 0xc4], 0x5755324a
mov dword [ebp - 0xc0], 0x35783347
mov dword [ebp - 0xbc], 0x5777334c
mov dword [ebp - 0xb8], 0x6d774142
mov dword [ebp - 0xb4], 0x76735241
mov dword [ebp - 0xb0], 0x6a74484e
mov dword [ebp - 0xac], 0x6d705245
mov dword [ebp - 0xa8], 0x6b554347
mov dword [ebp - 0xa4], 0x646b6961
mov dword [ebp - 0xa0], 0x6a56684b
mov dword [ebp - 0x9c], 0x2b774249
mov dword [ebp - 0x98], 0x42454441
mov dword [ebp - 0x94], 0x416f6946
mov dword [ebp - 0x90], 0x56455466
mov dword [ebp - 0x8c], 0x336f784c
mov dword [ebp - 0x88], 0x416f444f
mov dword [ebp - 0x84], 0x6e4a684b
mov dword [ebp - 0x80], 0x424d5147
mov dword [ebp - 0x7c], 0x4f6f4150
mov dword [ebp - 0x78], 0x4449334d
mov dword [ebp - 0x74], 0x3238525a
mov dword [ebp - 0x70], 0x4a6f414a
mov dword [ebp - 0x6c], 0x32747745
mov dword [ebp - 0x68], 0x4e49524d
mov dword [ebp - 0x64], 0x4a775342
mov dword [ebp - 0x60], 0x6e4a674d
mov dword [ebp - 0x5c], 0x48385241
mov dword [ebp - 0x58], 0x4a417941
mov dword [ebp - 0x54], 0x304e3242
mov dword [ebp - 0x50], 0x4c516865
mov dword [ebp - 0x4c], 0x78525150
mov dword [ebp - 0x48], 0x6973795a
mov dword [ebp - 0x44], 0x6f39334b
mov dword [ebp - 0x40], 0x77705147
mov dword [ebp - 0x3c], 0x584d6845
mov dword [ebp - 0x38], 0x43774248
mov dword [ebp - 0x34], 0x466f4244
mov dword [ebp - 0x30], 0x785a424e
mov dword [ebp - 0x2c], 0x396b674e
mov dword [ebp - 0x28], 0x77347762
mov dword [ebp - 0x24], 0x396c544a
mov dword [ebp - 0x20], 0x6c556959
mov dword [ebp - 0x1c], 0x2f554444
mov dword [ebp - 0x18], 0x42415142
mov dword [ebp - 0x14], 0x41414141
mov word [ebp - 0x10], 0x776d
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
push eax
push 0
call fcn.08405280
lea eax, [ebp - 0xf4]
push eax
call fcn.0840dab0
add esp, 0x10
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 4], 0
sub eax, ecx
jne 0x842701e
push str.invalid_vector_T__subscript
call fcn.0847ecf2
push ecx
push dword [edi + 0xc]
call fcn.08404110
mov eax, dword [ebp - 0xf4]
add esp, 8
test eax, eax
je 0x842703d
push eax
call fcn.0849b460
add esp, 4
mov dword [edi + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x842f260
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x184002c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x842f307
push 0x104
push ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0849e059
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x842f2a6
sub ecx, edx
sar ecx, 1
je 0x842f2e6
movzx eax, word [ebp + ecx*2 - 0x20e]
cmp eax, 0x2f
je 0x842f2c9
cmp eax, 0x5c
jne 0x842f2e6
lea ecx, [ecx*2 - 2]
cmp ecx, 0x208
jae 0x842f415
xor eax, eax
mov word [ebp + ecx - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x842f307
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [edi]
test ax, ax
je 0x842f405
push esi
mov esi, edi
mov ecx, edi
cmp ax, 0x2f
je 0x842f324
cmp ax, 0x5c
jne 0x842f326
mov esi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x842f318
cmp esi, edi
je 0x842f372
sub esi, edi
lea eax, [ebp - 0x20c]
and esi, 0xfffffffe
push esi
push edi
push eax
call fcn.0849d790
add esp, 0xc
cmp esi, 0x208
jae 0x842f415
xor eax, eax
mov word [ebp + esi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0842f260
add esp, 8
xor eax, eax
mov word [ebp - 0x414], ax
pop esi
test ebx, ebx
je 0x842f39a
push 0x104
push ebx
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0849e059
add esp, 0x10
xor eax, eax
lea ecx, [ebp - 0x414]
mov word [ebp - 0x20e], ax
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x842f3b0
sub ecx, edx
mov eax, 0x104
sar ecx, 1
sub eax, ecx
push eax
push edi
push eax
lea eax, [ebp - 0x414]
lea eax, [eax + ecx*2]
push eax
call fcn.0849e059
xor eax, eax
add esp, 0x10
mov word [ebp - 0x20e], ax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x842f405
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0849cd1e
mov esp, ebp
pop ebp
ret
call fcn.0849b8ca
int3
Function at 0x8433070
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x84f6b48
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x184002c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [eax - 0xc]
test eax, eax
je 0x843311d
mov edi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
lea ecx, [ebp - 0x14]
push 0
push 0
push ecx
push 0
push 1
push eax
push dword [ebp + 8]
call edi
test eax, eax
jne 0x84330d9
mov eax, dword [esi]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x843311f
push dword [ebp - 0x14]
mov ecx, esi
call fcn.08422a40
mov eax, dword [esi + 4]
mov ecx, dword [esi]
sub eax, ecx
jne 0x84330f6
push str.invalid_vector_T__subscript
call fcn.0847ecf2
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x14]
push 0
push 0
push edx
push ecx
push 1
push dword [eax - 0xc]
push eax
call edi
test eax, eax
jne 0x843311d
mov eax, dword [esi]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x843311f
xor esi, esi
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x8433143
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0849cd1e
mov esp, ebp
pop ebp
ret
Function at 0x8434680
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x8434741
cmp dword [edi + 4], 0xffffffff
jne 0x8434741
push esi
lea esi, [edi + 0x244]
push esi
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x84346b0
sub esi, ecx
sar esi, 1
movzx eax, word [edi + esi*2 + 0x242]
cmp eax, 0x5c
je 0x84346dc
cmp eax, 0x2f
je 0x84346dc
mov dword [edi + esi*2 + 0x244], 0x2f
mov esi, dword [ebp + 0x10]
cmp esi, 1
jne 0x8434702
push esi
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x8434702
pop esi
mov eax, 0x2000000
pop edi
pop ebp
ret 0xc
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0843af70
add esp, 0x10
test eax, eax
jne 0x8434722
mov eax, dword [ebp + 0x10]
pop esi
pop edi
pop ebp
ret 0xc
push eax
call fcn.0843b9b0
add esp, 4
mov dword [edi], eax
xor ecx, ecx
mov edx, 0x200
test eax, eax
cmove ecx, edx
pop esi
mov eax, ecx
pop edi
pop ebp
ret 0xc
mov eax, 0x1000000
pop edi
pop ebp
ret 0xc
Function at 0x84354a0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movsx eax, al
mov ecx, dword [edx]
xor eax, ecx
and eax, 0xff
shr ecx, 8
mov eax, dword [eax*4 + 0x10400c40]
xor eax, ecx
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edx + 8]
inc ecx
mov dword [edx + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x10400c40]
mov dword [edx + 8], eax
pop ebp
ret
Function at 0x843b0a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x184002c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ebx
imul esi, dword [ebp + 0x10]
mov dword [ebp - 8], eax
cmp byte [edi], 0
je 0x843b0e8
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x843b0e3
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x843b110
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x843b0f9
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 8]
call fcn.0849d790
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
mov ecx, dword [ebp - 4]
xor edx, edx
pop edi
div ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.0849cd1e
mov esp, ebp
pop ebp
ret

Function at 0x843b2a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x843b2ae
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x843b383
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x10400c40]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x10400c40]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x10400c40]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x10400c40]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x10400c40]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x10400c40]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x10400c40]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x10400c40]
dec edi
jne 0x843b2c6
pop edi
test esi, esi
je 0x843b3a2
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x10400c40]
dec esi
jne 0x843b387
not eax
pop esi
pop ebp
ret
Function at 0x843c6c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x184002c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
mov edi, dword [ebp + 8]
cmp byte [edi], 0
je 0x843c70a
cmp byte [edi + 1], 0
je 0x843c6f8
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x843c710
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0849cd1e
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], eax
cmp byte [edi], 0
push ebx
je 0x843c735
cmp byte [edi + 1], 0
je 0x843c72e
push 1
push 0
push 0
push dword [edi + 4]
call ecx
mov ebx, eax
sub ebx, dword [edi + 0xc]
jmp 0x843c738
xor ebx, ebx
mov dword [ebp - 0x14], ebx
jmp 0x843c747
mov ebx, dword [edi + 0x1c]
mov eax, 0xffff
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
cmp ebx, eax
jae 0x843c74a
mov dword [ebp - 0x10], ebx
push esi
push 0x404
call fcn.0849bb31
mov esi, eax
add esp, 4
test esi, esi
jne 0x843c772
pop esi
pop ebx
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0849cd1e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov eax, 4
mov dword [ebp - 0xc], 0xffffffff
cmp ecx, eax
jbe 0x843c878
lea esp, [esp]
add eax, 0x400
cmp eax, ecx
mov edx, eax
mov eax, 0x404
cmova edx, ecx
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 0x20], edx
sub ebx, ecx
mov dword [ebp - 0x1c], ecx
cmp ebx, 0x404
cmova ebx, eax
cmp byte [edi], 0
je 0x843c7da
cmp byte [edi + 1], 0
je 0x843c878
mov eax, dword [edi + 0xc]
push 0
push 0
add eax, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x843c7dd
mov dword [edi + 0x1c], ecx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 0x18], ebx
je 0x843c805
push 0
lea eax, [ebp - 8]
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x843c800
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x843c82e
mov edx, dword [edi + 0x1c]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
jbe 0x843c818
mov ecx, dword [edi + 0x18]
sub ecx, edx
mov dword [ebp - 0x18], ecx
push ecx
mov ecx, dword [edi + 0x14]
add ecx, edx
push ecx
push esi
call fcn.0849d790
mov eax, dword [ebp - 0x18]
add esp, 0xc
add dword [edi + 0x1c], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x843c878
lea eax, [ebx - 3]
test eax, eax
js 0x843c860
mov edi, edi
dec eax
cmp byte [eax + esi], 0x50
jne 0x843c85c
cmp byte [eax + esi + 1], 0x4b
jne 0x843c85c
cmp byte [eax + esi + 2], 5
jne 0x843c85c
cmp byte [eax + esi + 3], 6
je 0x843c895
test eax, eax
jns 0x843c840
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x843c878
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
cmp eax, ecx
jb 0x843c790
push esi
call fcn.0849babc
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0xc]
xor ecx, ebp
pop esi
pop ebx
pop edi
call fcn.0849cd1e
mov esp, ebp
pop ebp
ret
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
jmp 0x843c863