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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x49b390]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov word [ebp - 0x1c], 0x2f
mov word [ebp - 0x1a], 0x2f2f
mov word [ebp - 0x18], 0x2f22
mov word [ebp - 0x16], 0x3a
mov word [ebp - 0x14], 0x2a
mov word [ebp - 0x12], 0x3f
mov word [ebp - 0x10], 0x3c
mov word [ebp - 0xe], 0x3e
mov word [ebp - 0xc], 0x7c
mov word [ebp - 0xa], 0x2f74
mov word [ebp - 8], 0x22
xor esi, esi
movzx eax, word [ebp + esi*2 - 0x1c]
push eax
push edi
call fcn.0045d66f
test eax, eax
pop ecx
pop ecx
jne 0x40a167
inc esi
cmp esi, 0xb
jb 0x40a140
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045c28f
leave
ret
xor al, al
jmp 0x40a15a
Function at 0x4179ab
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
push 0xfffffffffffffffe
pop eax
jbe 0x4179d1
push esi
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x4867e0]
inc ecx
dec edx
jne 0x4179b4
pop edi
pop esi
ret

Function at 0x4179d2
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor ecx, ecx
cmp dword [esp + 8], eax
jbe 0x4179fd

Function at 0x417ddf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
call fcn.004179ab
mov ecx, dword [ebp + 8]
xor edx, edx
cmp dword [ebp + 0xc], edx
mov esi, eax
jle 0x417e11
lea eax, [edx + esi]
and eax, 0x3ff
mov al, byte [eax + 0x4a62a0]
xor byte [ecx], al
inc ecx
inc edx
cmp edx, dword [ebp + 0xc]
jl 0x417dfa
mov eax, esi
pop esi
pop ebp
ret

Function at 0x417efc
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x28
mov eax, 0x47c326
call fcn.0046435b
mov eax, 0x489a94
lea ecx, [ebp - 0x2c]
call fcn.00404670
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x417f26
lea eax, [ebp - 0x28]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ebx
je 0x417f8b
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.0045b098
pop ecx
push ebx
lea ecx, [ebp - 0x30]
push ecx
push esi
push eax
push dword [ebp - 0x34]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x30], esi
je 0x417f88
push dword [edi]
call fcn.0045c98a
pop ecx
mov dword [edi], ebx
mov dword [edi + 4], ebx
jmp 0x417f8b
mov dword [edi + 4], esi
push ebx
push 1
lea esi, [ebp - 0x2c]
call fcn.004049f4
call fcn.004643de
ret

Function at 0x419766
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov edx, ebx
mov ecx, edi
call fcn.004179ab
mov dword [ebp - 4], eax
xor eax, eax
test ebx, ebx
jbe 0x4197a1
mov esi, dword [ebp + 0xc]
add esi, 0x523
mov ecx, esi
and ecx, 0x3ff
mov cl, byte [ecx + 0x4867e0]
xor byte [eax + edi], cl
inc eax
inc esi
cmp eax, ebx
jb 0x41978a
xor esi, esi
test ebx, ebx
jbe 0x4197ce
xor edx, edx
push 7
pop ecx
mov eax, esi
div ecx
mov bl, byte [esi + edi]
inc edx
mov ecx, edx
and ecx, 0x80000007
jns 0x4197c3
dec ecx
or ecx, 0xfffffff8
inc ecx
rol bl, cl
mov byte [esi + edi], bl
inc esi
cmp esi, dword [ebp + 8]
jb 0x4197a7
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
Function at 0x4197e1
Capabilities:
Encode data using xor

Disassembly:
push 7
xor edx, edx
pop ecx
mov eax, esi
div ecx
mov bl, byte [esi + edi]
sub ecx, edx
and ecx, 0x80000007
jns 0x4197fc
dec ecx
or ecx, 0xfffffff8
inc ecx
rol bl, cl
mov byte [esi + edi], bl
inc esi
cmp esi, dword [ebp + 0xc]
jb fcn.004197e1
mov edx, dword [ebp + 0xc]
xor eax, eax
test edx, edx
jbe 0x419830
mov ecx, dword [ebp + 0x10]
add ecx, 0x523
mov esi, ecx
and esi, 0x3ff
mov bl, byte [esi + 0x4867e0]
xor byte [eax + edi], bl
inc eax
inc ecx
cmp eax, edx
jb 0x419819
mov ecx, edi
call fcn.004179ab
sub eax, dword [ebp + 8]
pop esi
neg eax
sbb eax, eax
inc eax
pop ebx
pop ebp
ret

Function at 0x41c851
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x49b390]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
push 0x6a
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x78]
push 0
push eax
mov esi, ecx
call fcn.0045c910
add esp, 0xc
test esi, esi
je 0x41c89f
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edi, [esi + 0x94]
call ebx
sub eax, dword [edi]
cmp eax, 0x1388
jb 0x41c935
call ebx
mov dword [edi], eax
mov ax, word [ebp + 8]
push 0x10
push dword [ebp - 0x7c]
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
call fcn.0045c2a0
mov eax, dword [0x4a6f40]
add esp, 0xc
mov dword [ebp - 0x66], eax
mov eax, dword [0x4a6f44]
push 0x4898e4
mov dword [ebp - 0x62], eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp dword [0x4a7bd8], 0x10
mov dword [ebp - 0x5e], eax
mov eax, dword [0x4a7bc4]
mov dword [ebp - 0x5a], 0x10000
jae 0x41c8f0
mov eax, 0x4a7bc4
push 0x1f
push eax
lea eax, [ebp - 0x4e]
push eax
call fcn.0045fb60
add esp, 0xc
test esi, esi
je 0x41c912
mov ecx, dword [esi + 0x8c]
movzx eax, word [esi + 0x90]
jmp 0x41c919
mov ecx, dword [ebp + 0xc]
movzx eax, word [ebp + 0x10]
or dword [ebp - 0x56], 1
push eax
push ecx
mov dword [ebp - 0x2e], ecx
push 0x6a
lea esi, [ebp - 0x78]
mov ecx, 0x4a6f80
mov word [ebp - 0x2a], ax
call fcn.0042c48b
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045c28f
leave
ret

Function at 0x41ce88
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [edi + 0x34], 0
push ebx
push esi
jne 0x41cf05
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4a6768]
mov ebx, 0x3e8
cmp eax, ebx
jb 0x41cf05
call esi
sub eax, dword [edi + 0x3c]
cmp eax, ebx
jb 0x41cf05
call esi
cmp dword [edi + 0x30], 1
mov dword [edi + 0x3c], eax
jne 0x41ceca
lea esi, [edi + 0x48]
call fcn.0041e1f7
jmp 0x41cefa
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
mov eax, edi
call fcn.0041b596
cmp dword [ebp - 4], 0xf
jge 0x41cf05
cmp dword [edi + 0x80], 0x28
jae 0x41cf05
push 1
lea esi, [edi + 0x50]
call fcn.00419888
test eax, eax
je 0x41cf05
mov ecx, edi
call fcn.0041cd01
pop esi
pop ebx
leave
ret
Function at 0x41e840
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov esi, eax
push 0x64
call fcn.0041ee0e
mov ecx, dword [esi + 0x2c]
mov edi, edx
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov eax, dword [esi + 0x28]
add edx, 1
mov dword [ebp - 4], edi
adc edi, ebx
cmp edi, ecx
jb 0x41e883
ja 0x41e875
cmp edx, eax
jb 0x41e883
sub eax, dword [ebp - 8]
sbb ecx, dword [ebp - 4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
jmp 0x41e88d
mov dword [ebp - 8], 1
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
mov dword [ebp - 0x18], eax
sub eax, dword [esi + 8]
push ebx
sbb ecx, dword [esi + 0xc]
push 0x1e
push ecx
push eax
call fcn.00468c00
push ebx
push 0x64
push edx
push eax
call 0x47a860
mov edi, eax
cmp edi, dword [esi]
mov dword [ebp - 0xc], edx
jne 0x41e8c0
cmp edx, dword [esi + 4]
je 0x41e8fc
mov eax, dword [esi]
mov ecx, dword [esi + 0x20]
mov dword [esi + eax*8 + 0x30], ecx
mov ecx, dword [esi + 0x24]
mov dword [esi + eax*8 + 0x34], ecx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push ebx
add eax, 1
push 0x64
adc ecx, ebx
push ecx
push eax
call 0x47a860
cmp eax, edi
mov dword [esi], eax
mov dword [esi + 4], edx
jne 0x41e8c0
mov eax, edx
cmp eax, dword [ebp - 0xc]
jne 0x41e8c0
mov eax, dword [ebp - 0xc]
mov dword [esi], edi
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, eax
or ecx, edx
je 0x41e90e
add dword [esi + 0x20], eax
adc dword [esi + 0x24], edx
mov ebx, dword [esi + 0x18]
mov edi, dword [ebp - 0x18]
xor ecx, ecx
or ebx, dword [esi + 0x1c]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
jne 0x41e927
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4216dc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0
mov esi, eax
push 0xc8
call fcn.0041daa0
mov edi, dword [esi + 0x2c]
mov ecx, edx
mov edx, dword [esi + 0x28]
mov ebx, eax
add eax, dword [ebp + 8]
mov dword [ebp - 4], ecx
adc ecx, dword [ebp + 0xc]
cmp ecx, edi
jb 0x42171d
ja 0x421710
cmp eax, edx
jb 0x42171d
sub edx, ebx
sbb edi, dword [ebp - 4]
mov dword [ebp - 8], edx
clc
mov dword [ebp - 4], edi
jmp 0x421729
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
mov dword [ebp - 0x10], eax
sub eax, dword [esi + 8]
push 0
sbb ecx, dword [esi + 0xc]
push 0x32
push ecx
push eax
call fcn.00468c00
push 0
mov edi, 0xc8
push edi
push edx
push eax
call 0x47a860
mov ebx, eax
cmp ebx, dword [esi]
mov dword [ebp + 0xc], edx
jne 0x421762
cmp edx, dword [esi + 4]
je 0x42179f
mov eax, dword [esi]
mov ecx, dword [esi + 0x20]
mov dword [esi + eax*8 + 0x30], ecx
mov ecx, dword [esi + 0x24]
mov dword [esi + eax*8 + 0x34], ecx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push 0
add eax, 1
push edi
adc ecx, 0
push ecx
push eax
call 0x47a860
cmp eax, ebx
mov dword [esi], eax
mov dword [esi + 4], edx
jne 0x421762
mov eax, edx
cmp eax, dword [ebp + 0xc]
jne 0x421762
mov eax, dword [ebp + 0xc]
mov dword [esi], ebx
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, eax
or ecx, edx
je 0x4217b1
add dword [esi + 0x20], eax
adc dword [esi + 0x24], edx
mov ebx, dword [esi + 0x18]
mov edi, dword [ebp - 0x10]
xor ecx, ecx
or ebx, dword [esi + 0x1c]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
jne 0x4217ca
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], ecx
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4218d5
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, eax
call fcn.0041e99b
mov ecx, dword [esi + 0x2c]
mov edi, edx
mov ebx, eax
mov eax, dword [esi + 0x28]
mov edx, ebx
add edx, 1
mov dword [ebp - 0xc], edi
adc edi, 0
cmp edi, ecx
jb 0x421911
ja 0x421904
cmp edx, eax
jb 0x421911
sub eax, ebx
sbb ecx, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
jmp 0x42191c
and dword [ebp - 4], 0
mov dword [ebp - 8], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
mov dword [ebp - 0x18], eax
sub eax, dword [esi + 8]
push 0
sbb ecx, dword [esi + 0xc]
push 0xf
push ecx
push eax
call fcn.00468c00
push 0
mov edi, 0xc8
push edi
push edx
push eax
call 0x47a860
mov ebx, eax
cmp ebx, dword [esi]
mov dword [ebp - 0xc], edx
jne 0x421955
cmp edx, dword [esi + 4]
Function at 0x42320c
Capabilities:
Set socket configuration

Disassembly:
mov esi, eax
lea eax, [ebp - 0x84c]
push eax
push 0x20
push 0xffff
push esi
mov dword [ebp - 0x84c], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov word [ebp - 0x24], 2
mov dword [ebp - 0x20], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0
push dword [ebp - 0x848]
mov word [ebp - 0x22], ax
mov ecx, 0x124
outsd dx, dword [esi]
dec edx
add byte [edi + 0x6a], dl
jge 0x80fc1ed3
outsd dx, dword [esi]
dec edx
add byte [esi - 0x39], ah
inc ebp
in al, dx
adc al, byte [eax]
mov byte [ebp - 6], al
call fcn.0042c502
movzx eax, bx
push eax
push edi
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push 0x48a9d8
call fcn.004179f2
add esp, 0xc
pop edi
pop esi
mov al, 1
pop ebx
leave
ret
Function at 0x42c2aa
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and byte [ecx + 0x49b390], ah
xor eax, ebp
mov dword [ebp - 8], eax
mov ax, word [ebp + 8]
and dword [ebp - 0x1c], 0
push ebx
push esi
push edi
mov esi, ecx
push 0x10
mov word [esi + 0xc], ax
pop ebx
call 0x4368a5
mov eax, esi
call fcn.00436855
test al, al
je 0x42c2f7
movzx eax, word [esi + 0xc]
inc dword [ebp - 0x1c]
test ax, ax
je 0x42c284
movzx eax, ax
push eax
call 0x43696f
mov edi, eax
jmp 0x42c2c5
push 0
call 0x43696f
mov edi, eax
test edi, edi
jne 0x42c2c5
push ebx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0045c910
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [esi]
mov dword [ebp - 0x20], ebx
pop ebp
invalid
call dword [sym.imp.WS2_32.dll_getsockname]
mov edi, eax
test edi, edi
jne 0x42c2ce
push dword [ebp - 0x16]
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [esi + 0xc], ax
cmp edi, 1
jne 0x42c30e
inc word [esi + 0xc]
call fcn.00436866
cmp dword [ebp - 0x1c], 0x32
jl 0x42c257
mov ebx, esi
call 0x43690f
mov al, 1
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045c28f
leave
ret 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x48b504
call fcn.00417a54
pop ecx
pop ecx
xor al, al
jmp 0x42c2e6
cmp edi, 2
jne 0x42c2dd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
movzx eax, word [esi + 0xc]
push eax
push 0x48b530
call fcn.00417a54
add esp, 0xc
call fcn.00436866
jmp 0x42c30a
Function at 0x4305b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov esi, eax
push 0x64
call fcn.0043069c
mov ecx, dword [esi + 0x2c]
mov edi, edx
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov eax, dword [esi + 0x28]
add edx, 1
mov dword [ebp - 4], edi
adc edi, ebx
cmp edi, ecx
jb 0x4305f3
ja 0x4305e5
cmp edx, eax
jb 0x4305f3
sub eax, dword [ebp - 8]
sbb ecx, dword [ebp - 4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
jmp 0x4305fd
mov dword [ebp - 8], 1
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
mov dword [ebp - 0x18], eax
sub eax, dword [esi + 8]
push ebx
sbb ecx, dword [esi + 0xc]
push 0x64
push ecx
push eax
call fcn.00468c00
push ebx
push 0x64
push edx
push eax
call 0x47a860
mov edi, eax
cmp edi, dword [esi]
mov dword [ebp - 0xc], edx
jne 0x430630
cmp edx, dword [esi + 4]
je 0x43066c
mov eax, dword [esi]
mov ecx, dword [esi + 0x20]
mov dword [esi + eax*8 + 0x30], ecx
mov ecx, dword [esi + 0x24]
mov dword [esi + eax*8 + 0x34], ecx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push ebx
add eax, 1
push 0x64
adc ecx, ebx
push ecx
push eax
call 0x47a860
cmp eax, edi
mov dword [esi], eax
mov dword [esi + 4], edx
jne 0x430630
mov eax, edx
cmp eax, dword [ebp - 0xc]
jne 0x430630
mov eax, dword [ebp - 0xc]
mov dword [esi], edi
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, eax
or ecx, edx
je 0x43067e
add dword [esi + 0x20], eax
adc dword [esi + 0x24], edx
mov ebx, dword [esi + 0x18]
mov edi, dword [ebp - 0x18]
xor ecx, ecx
or ebx, dword [esi + 0x1c]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
jne 0x430697
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4307a6
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, eax
call fcn.00431a7c
mov ecx, dword [esi + 0x2c]
mov edi, edx
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov eax, dword [esi + 0x28]
push 0
add edx, 1
pop ebx
mov dword [ebp - 4], edi
adc edi, ebx
cmp edi, ecx
jb 0x4307e7
ja 0x4307d9
cmp edx, eax
jb 0x4307e7
sub eax, dword [ebp - 8]
sbb ecx, dword [ebp - 4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
jmp 0x4307f1
mov dword [ebp - 8], 1
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
mov dword [ebp - 0x18], eax
sub eax, dword [esi + 8]
push ebx
sbb ecx, dword [esi + 0xc]
push 0x64
push ecx
push eax
call fcn.00468c00
push ebx
push 0xa
push edx
push eax
call 0x47a860
mov edi, eax
cmp edi, dword [esi]
mov dword [ebp - 0xc], edx
jne 0x430824
cmp edx, dword [esi + 4]
je 0x430860
mov eax, dword [esi]
mov ecx, dword [esi + 0x20]
mov dword [esi + eax*8 + 0x30], ecx
mov ecx, dword [esi + 0x24]
mov dword [esi + eax*8 + 0x34], ecx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push ebx
add eax, 1
push 0xa
adc ecx, ebx
push ecx
push eax
call 0x47a860
cmp eax, edi
mov dword [esi], eax
mov dword [esi + 4], edx
jne 0x430824
mov eax, edx
cmp eax, dword [ebp - 0xc]
jne 0x430824
mov eax, dword [ebp - 0xc]
mov dword [esi], edi
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, eax
or ecx, edx
je 0x430872
add dword [esi + 0x20], eax
adc dword [esi + 0x24], edx
mov ebx, dword [esi + 0x18]
mov edi, dword [ebp - 0x18]
xor ecx, ecx
or ebx, dword [esi + 0x1c]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
jne 0x43088b
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43457c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4345b7
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00401144
xor eax, eax
pop edi
pop esi
leave
ret
cmp dword [ebp + 0x18], 0xffffffff
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
jne 0x4345dd
lea eax, [ebp - 0x18]
push eax
push edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp + 0x18], eax
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x434611
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x434611
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00401144
mov eax, esi
jmp 0x4345b3
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x18]
mov dword [ebp - 8], esi
push dword [ebp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 8]
jmp 0x434602
Function at 0x434632
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
cmp byte [ebp + 0x14], bl
push 4
pop eax
je 0x434646
push 2
pop eax
push ebx
push 0x80
push eax
push ebx
push 3
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x434676
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00401144
xor eax, eax
pop esi
pop ebx
leave
ret
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
push ecx
push eax
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4346b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4346b4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00401144
mov eax, ebx
jmp 0x434672
push ebx
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x1c]
mov dword [ebp + 0x14], ebx
push dword [ebp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [ebp + 0x20], bl
je 0x4346d5
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp + 0x14]
jmp 0x4346a5

Function at 0x434b81
Capabilities:
Check if file exists

Disassembly:
push ebx
push dword [esp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, dword [esp + 8]
setne bl
add eax, 0xfffffff0
call fcn.00401144
mov al, bl
pop ebx
ret

Function at 0x434ba1
Capabilities:
Delete file

Disassembly:
push ebx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov eax, dword [esp + 8]
setne bl
add eax, 0xfffffff0
call fcn.00401144
mov al, bl
pop ebx
ret
Function at 0x434bc1
Capabilities:
Create directory

Disassembly:
push 0xc
mov eax, 0x47e0ce
call fcn.004642f2
lea eax, [ebp + 8]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.00434e43
pop ecx
push 2
pop ecx
lea edx, [ebp - 0x18]
lea eax, [ebp + 8]
mov dword [ebp - 0x14], esi
call fcn.0043510d
mov edi, 0x488b48
push edi
push eax
mov byte [ebp - 4], 1
call fcn.0040b42b
mov ebx, eax
neg ebx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.00401144
test bl, bl
je 0x434c1f
mov dword [ebp - 0x14], 1
push 0x486cac
lea eax, [ebp - 0x10]
push eax
call fcn.004045f7
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
xor ebx, ebx
test ecx, ecx
jle 0x434cb0
test esi, esi
jl 0x434cda
cmp esi, ecx
jg 0x434cda
movzx eax, word [eax + esi*2]
push eax
lea eax, [ebp - 0x10]
call fcn.004350e0
mov eax, dword [ebp + 8]
cmp esi, dword [eax - 0xc]
jg 0x434cda
cmp word [eax + esi*2], 0x5c
jne 0x434ca8
inc ebx
cmp ebx, 1
je 0x434ca8
cmp dword [ebp - 0x14], 0
je 0x434c7a
cmp ebx, 4
jle 0x434ca8
push 0x485248
lea eax, [ebp - 0x10]
push eax
call fcn.0040b42b
test eax, eax
je 0x434ca5
push edi
lea eax, [ebp - 0x10]
push eax
call fcn.0040b42b
test eax, eax
je 0x434ca5
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
inc esi
cmp esi, ecx
jl 0x434c3d
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
mov eax, dword [ebp - 0x10]
setne bl
add eax, 0xfffffff0
call fcn.00401144
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00401144
mov al, bl
call fcn.004643ca
ret
push 0x80070057
call fcn.00401000
int3

Function at 0x435c91
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x49b390]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov dword [ebp - 0x210], eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0045c910
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.004045f7
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.0045c28f
leave
ret
Function at 0x43ecf8
Capabilities:
Get disk information

Disassembly:
push 0x34
mov eax, 0x47bbbb
call fcn.0046435b
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [0x4a55fc]
mov ecx, 0x4a55fc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
movsx ebx, byte [ebp + 0xc]
push ebx
lea eax, [ebp - 0x34]
push 0x48bd40
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.00415103
mov esi, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
add esp, 0xc
push 0x20
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x40]
push eax
push edi
lea eax, [ebp - 0x38]
push eax
push edi
push edi
push dword [ebp - 0x34]
call esi
cmp eax, 1
jne 0x43ed7c
push dword [ebp - 0x38]
push 0x48bd48
push dword [ebp - 0x3c]
call fcn.00415103
mov eax, dword [ebp - 0x34]
add esp, 0xc
add eax, 0xfffffff0
call fcn.00401144
xor eax, eax
inc eax
jmp 0x43edca
push ebx
lea eax, [ebp - 0x34]
push 0x48bd50
push eax
call fcn.00415103
mov ebx, dword [ebp - 0x34]
add esp, 0xc
push 0x20
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x40]
push eax
push edi
lea eax, [ebp - 0x38]
push eax
push edi
push edi
push ebx
call esi
cmp eax, 1
jne 0x43edc0
push dword [ebp - 0x38]
push 0x48bd48
push dword [ebp - 0x3c]
call fcn.00415103
xor edi, edi
add esp, 0xc
inc edi
lea eax, [ebx - 0x10]
call fcn.00401144
mov eax, edi
call fcn.004643de
ret