joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b640
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44fc90
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x464628]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x42b678
mov eax, dword [esi]
jmp 0x42b67a
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x42b69a
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x42b6a4
mov eax, dword [esi]
jmp 0x42b6a6
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42b826
cmp dword [esi + 0x14], 8
jb 0x42b6c2
mov edi, dword [esi]
jmp 0x42b6c4
mov edi, esi
xor eax, eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
cmp word [edi], ax
je 0x42b6f9
push edi
call fcn.004385e2
add esp, 4
push eax
push edi
lea ecx, [esp + 0x1c]
call fcn.00403829
mov dword [esp + 0x38], 0
lea eax, [esp + 0x14]
cmp dword [esp + 0x28], 8
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmovae eax, dword [esp + 0x14]
push 0
push eax
call edi
test eax, eax
setne al
test al, al
sete al
mov byte [esp + 0x13], al
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x42b752
push dword [esp + 0x14]
call fcn.004382cd
mov al, byte [esp + 0x17]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], cx
test al, al
jne 0x42b826
cmp dword [esi + 0x14], 8
jb 0x42b77b
mov eax, dword [esi]
jmp 0x42b77d
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42b685
cmp dword [esi + 0x14], 8
jb 0x42b794
mov esi, dword [esi]
xor eax, eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
cmp word [esi], ax
je 0x42b7c9
push esi
call fcn.004385e2
add esp, 4
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00403829
mov dword [esp + 0x38], 1
and ebx, 0xffffb1af
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
push ebx
cmovae eax, dword [esp + 0x18]
push eax
call edi
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x42b80f
push dword [esp + 0x14]
call fcn.004382cd
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42b840
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x464628]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
xor eax, eax
push esi
push edi
push 0x20a
push eax
mov word [esp + 0x14], ax
mov edi, edx
lea eax, [esp + 0x16]
mov esi, ecx
push eax
call fcn.0043b1a0
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x42b884
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x42b88c
mov esi, dword [esi]
lea eax, [esp + 0xc]
push eax
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x42b90b
xor eax, eax
mov word [esp + 0x216], ax
cmp word [esp + 0xc], ax
jne 0x42b8d7
push eax
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call fcn.00403829
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00437430
add esp, 0x210
ret
lea eax, [esp + 0xc]
push eax
call fcn.004385e2
add esp, 4
mov ecx, ebx
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00403829
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00437430
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00437430
add esp, 0x210
ret

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

Disassembly:
sub esp, 0x94
mov eax, dword [0x464628]
xor eax, esp
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x98]
push ebx
mov ebx, dword [esp + 0xa0]
push ebp
push esi
mov dword [esp + 0xc], edx
xor esi, esi
cdq
push edi
mov dword [esp + 0x14], ecx
lea edi, [esp + 0x58]
mov ebp, eax
push 0
push 0xa
push edx
push ebp
call fcn.0043df40
lea ecx, [eax + eax*4]
add ecx, ecx
sub ebp, ecx
add ebp, 0x30
mov word [esp + esi*2 + 0x18], bp
inc esi
mov ebp, eax
or eax, edx
jne 0x42bd27
jmp 0x42bd50
mov ax, word [esp + esi*2 + 0x16]
lea edi, [edi + 2]
dec esi
mov word [edi - 2], ax
test esi, esi
jg 0x42bd50
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x14]
cmp ebx, eax
je 0x42bd7a
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.0040348d
push 0x45a950
call fcn.004385e2
add esp, 4
mov ecx, ebx
push eax
push 0x45a950
call fcn.00403786
cmp word [esp + 0x58], 0
jne 0x42bda0
xor eax, eax
jmp 0x42bdad
lea eax, [esp + 0x58]
push eax
call fcn.004385e2
add esp, 4
push eax
lea eax, [esp + 0x5c]
mov ecx, ebx
push eax
call fcn.00403786
push 0x45a94c
call fcn.004385e2
add esp, 4
mov ecx, ebx
push eax
push 0x45a94c
call fcn.00403786
push 0xffffffffffffffff
push 0
push dword [esp + 0x18]
mov ecx, ebx
call fcn.00403b45
cmp dword [ebx + 0x14], 8
jb 0x42bdeb
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
pop edi
pop esi
sete al
mov ecx, dword [esp + 0x94]
pop ebp
pop ebx
xor ecx, esp
call fcn.00437430
add esp, 0x94
ret
Function at 0x42bf50
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x464628]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push edi
push eax
push dword [ecx]
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42bf9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42bf9f
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00437430
add esp, 8
ret 4
mov ecx, dword [esp + 8]
xor eax, eax
add eax, edi
mov dword [esi], eax
mov al, 1
adc ecx, 0
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0xc]
pop edi
pop esi
xor ecx, esp
call fcn.00437430
add esp, 8
ret 4

Function at 0x42c0b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [0x464628]
xor eax, esp
mov dword [esp + 4], eax
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ebp, ecx
push edi
mov edi, dword [esp + 0x1c]
mov ecx, 0x100000
mov dword [ebx], 0
jmp 0x42c0e0
cmp esi, 0x100000
mov dword [esp + 0x10], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x14]
push ecx
push eax
push edi
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
test eax, eax
setne al
add dword [ebx], ecx
test al, al
je 0x42c13a
test ecx, ecx
je 0x42c123
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x42c0e0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00437430
add esp, 8
ret 0xc
mov ecx, dword [esp + 0x14]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00437430
add esp, 8
ret 0xc
Function at 0x42d50d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
test edi, edi
je 0x42d51d
mov dword [edi], esi
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 0x10], esi
test ecx, ecx
je 0x42d575
mov eax, 0x8000
cmp ecx, eax
push esi
cmovb eax, ecx
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp + 8]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test edi, edi
je 0x42d552
mov ecx, dword [ebp + 0x10]
add dword [edi], ecx
test eax, eax
jne 0x42d575
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42d567
mov esi, 0x80004005
jmp 0x42d575
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x430bef
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 8], ecx
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x430c10
xor eax, eax
jmp 0x430d52
add dword [ebp + 8], 5
lea eax, [edx - 4]
push ebx
or ebx, 0xffffffff
add eax, ecx
mov dword [ebp - 4], eax
lea edx, [edi + ecx]
mov dword [ebp - 0xc], edx
cmp edx, eax
jae 0x430c43
mov ecx, dword [ebp - 4]
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x430c3a
inc edx
cmp edx, ecx
jb 0x430c2d
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov edi, edx
sub edi, ecx
cmp edx, eax
jae 0x430d36
mov ecx, edi
sub ecx, ebx
cmp ecx, 3
jbe 0x430cc9
xor esi, esi
mov al, byte [edx + 4]
mov ebx, edi
mov dword [ebp - 0x18], ebx
test al, al
je 0x430c6e
cmp al, 0xff
jne 0x430cf6
movzx ebx, al
movzx eax, byte [edx + 3]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 1]
mov edx, dword [ebp + 8]
shl ebx, 8
or ebx, eax
sub ebx, edi
sub ebx, edx
mov dword [ebp - 0x14], ebx
test esi, esi
je 0x430d0a
movzx eax, byte [esi + 0x457c94]
shl eax, 3
push 0x18
pop ecx
sub ecx, eax
mov dword [ebp - 0x10], eax
mov eax, ebx
shr eax, cl
test al, al
je 0x430cb8
cmp al, 0xff
jne 0x430d0a
xor ebx, ebx
push 0x20
pop ecx
sub ecx, dword [ebp - 0x10]
inc ebx
shl ebx, cl
dec ebx
xor ebx, dword [ebp - 0x14]
jmp 0x430c8f
dec ecx
shl esi, cl
and esi, 7
je 0x430c5a
movzx eax, byte [esi + 0x457c94]
mov ecx, edx
sub ecx, eax
cmp byte [esi + 0x457b24], 0
mov al, byte [ecx + 4]
je 0x430cf4
test al, al
je 0x430cf4
cmp al, 0xff
jne 0x430c5a
mov ebx, edi
and esi, 3
add esi, esi
or esi, 1
inc edi
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
jmp 0x430c20
mov edx, dword [ebp - 0xc]
mov eax, ebx
shr eax, 0x18
and al, 1
dec al
not al
mov byte [edx + 1], bl
mov byte [edx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edx + 3], al
mov eax, ebx
mov ebx, dword [ebp - 0x18]
shr eax, 8
add edi, 5
mov byte [edx + 2], al
jmp 0x430cff
mov edx, edi
xor eax, eax
sub edx, ebx
pop ebx
lea ecx, [edx - 1]
shl esi, cl
and esi, 7
cmp edx, 3
cmova esi, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x430f43
Capabilities:
Hash data using sha256

Disassembly:
and dword [ecx + 0x20], 0
and dword [ecx + 0x24], 0
mov dword [ecx], 0x6a09e667
mov dword [ecx + 4], 0xbb67ae85
mov dword [ecx + 8], 0x3c6ef372
mov dword [ecx + 0xc], 0xa54ff53a
mov dword [ecx + 0x10], 0x510e527f
mov dword [ecx + 0x14], 0x9b05688c
mov dword [ecx + 0x18], 0x1f83d9ab
mov dword [ecx + 0x1c], 0x5be0cd19
ret
Function at 0x431279
Capabilities:
Check os version
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x464628]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x11c], ebx
mov ecx, ebx
movzx eax, byte [ecx + str.cw]
mov byte [eax + 0x469c70], cl
inc ecx
cmp ecx, 0x100
jb 0x431299
movzx edi, byte [ebx + str.cw]
mov eax, edi
mov ecx, edi
and al, 0x80
movzx esi, al
neg esi
lea eax, [edi + edi]
sbb esi, esi
shl ecx, 8
and esi, 0x1b
xor esi, eax
and esi, 0xff
mov edx, esi
xor edx, edi
mov eax, edx
shl eax, 8
or eax, edi
shl eax, 8
or eax, edi
shl eax, 8
or eax, esi
mov dword [ebx*4 + 0x46ad70], eax
mov eax, ecx
or ecx, esi
or eax, edi
shl eax, 8
or eax, esi
shl ecx, 8
shl esi, 8
or ecx, edx
or esi, edx
shl eax, 8
or eax, edx
shl esi, 8
or esi, edi
shl ecx, 8
mov dword [ebx*4 + 0x46b170], eax
or ecx, edi
shl esi, 8
or esi, edi
mov dword [ebx*4 + 0x46b570], ecx
movzx edi, byte [ebx + 0x469c70]
mov dword [ebx*4 + 0x46b970], esi
mov eax, edi
and al, 0x80
mov ebx, 0xff
movzx esi, al
neg esi
lea eax, [edi + edi]
sbb esi, esi
and esi, 0x1b
xor esi, eax
and esi, ebx
mov eax, esi
and al, 0x80
movzx ecx, al
neg ecx
lea eax, [esi + esi]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
and ecx, ebx
mov eax, ecx
and al, 0x80
movzx edx, al
neg edx
lea eax, [ecx + ecx]
sbb edx, edx
and edx, 0x1b
xor edx, eax
and edx, ebx
mov dword [ebp - 0x120], edx
mov ebx, edx
mov eax, dword [ebp - 0x120]
xor edx, esi
xor eax, ecx
xor ebx, edi
mov ecx, eax
mov dword [ebp - 0x120], eax
xor edx, edi
xor ecx, edi
mov edi, eax
mov eax, edx
shl eax, 8
xor edi, esi
mov esi, dword [ebp - 0x11c]
or eax, ecx
shl eax, 8
or eax, ebx
shl eax, 8
or eax, edi
mov dword [esi*4 + 0x469d70], eax
mov eax, ecx
shl eax, 8
or eax, ebx
shl eax, 8
or eax, edi
shl eax, 8
or eax, edx
mov dword [esi*4 + 0x46a170], eax
mov eax, ebx
shl eax, 8
or eax, edi
shl edi, 8
or edi, edx
shl eax, 8
shl edi, 8
or eax, edx
or edi, ecx
shl eax, 8
shl edi, 8
or eax, ecx
or edi, ebx
mov dword [esi*4 + 0x46a570], eax
mov ebx, esi
mov dword [ebx*4 + 0x46a970], edi
inc ebx
mov dword [ebp - 0x11c], ebx
cmp ebx, 0x100
jb 0x4312af
lea eax, [ebp - 0x118]
mov dword [0x46cf8c], 0x431f2a
push eax
mov dword [0x46cf94], 0x431f84
mov dword [0x46cf90], 0x432020
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
pop edi
pop esi
pop ebx
test eax, eax
je 0x431499
cmp dword [ebp - 0x114], 5
sbb eax, eax
inc eax
je 0x431499
lea ecx, [ebp - 0x140]
call fcn.004082f0
test eax, eax
je 0x431499
mov eax, dword [ebp - 0x128]
shr eax, 0x19
and eax, 1
je 0x431499
mov dword [0x46cf8c], 0x432c8b
mov dword [0x46cf94], 0x432ce3
mov dword [0x46cf90], 0x432e14
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00437430
mov esp, ebp
pop ebp
ret
Function at 0x4314a7
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor esi, esi
lea ecx, [edi + 0x1c]
shr edi, 2
mov eax, edi
mov dword [ebp - 0xc], ecx
shr eax, 1
add eax, 3
mov dword [ebx], eax
add ebx, 0x10
test edi, edi
je 0x4314dd
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jb 0x4314d0
cmp esi, ecx
jae 0x4315c9
mov eax, esi
sub eax, edi
lea eax, [ebx + eax*4]
mov dword [ebp - 4], eax
xor edx, edx
mov ecx, dword [ebx + esi*4 - 4]
mov eax, esi
mov dword [ebp + 8], ecx
div edi
mov dword [ebp - 8], eax
test edx, edx
jne 0x43155b
movzx ecx, cl
movzx edx, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
shr ecx, 0x18
shl edx, 8
movzx eax, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
or edx, eax
mov eax, ecx
shl edx, 8
shr eax, 0x10
and eax, 0xff
shr ecx, 8
and ecx, 0xff
movzx eax, byte [eax + str.cw]
movzx ecx, byte [ecx + str.cw]
or edx, eax
mov eax, dword [ebp - 8]
shl edx, 8
movzx eax, byte [eax + 0x458250]
xor ecx, eax
or ecx, edx
jmp 0x4315af
cmp edi, 6
jbe 0x4315af
cmp edx, 4
jne 0x4315af
mov edx, dword [ebp + 8]
mov eax, ecx
shr eax, 0x10
and eax, 0xff
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
and eax, 0xff
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add edx, 4
xor eax, ecx
mov dword [ebp - 4], edx
mov dword [ebx + esi*4], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x4314ef
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x433c90
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x44fdb9
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x464628]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
push 0x18
call fcn.0043831d
add esp, 4
mov dword [edi + 0x20], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esp + 0x34], 0
lea esi, [edi + 0x24]
mov dword [esi], 0
xor eax, eax
mov byte [esi + 4], 0
mov dword [esi + 0x1c], 7
mov dword [esi + 0x18], 0
mov dword [esp + 0x10], esi
mov word [esi + 8], ax
mov byte [esp + 0x34], 2
lea ecx, [esp + 0x14]
push eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 0x10], 0xffffffff
mov dword [edi + 0x14], 0xffffffff
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
push 0x458360
mov byte [edi + 8], al
mov dword [edi + 0x18], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x1c], eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], eax
mov word [esp + 0x1c], ax
call fcn.00403829
mov byte [esp + 0x34], 3
sub esp, 8
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.004345c0
mov byte [esp + 0x34], 2
cmp dword [esp + 0x28], 8
jb 0x433d74
push dword [esp + 0x14]
call fcn.004382cd
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
mov dword [esp + 0x34], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret
Function at 0x4342a0
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
push edi
mov edi, ecx
push ecx
lea esi, [edi + 4]
mov ecx, esi
call fcn.0040efd2
test al, al
je 0x432895
pop edi
xor al, al
pop esi
ret
push 0xc
call fcn.0043831d
pop ecx
test eax, eax
je 0x4328ac
push edi
push ecx
mov ecx, eax
call fcn.00434060
jmp 0x4328ae
xor eax, eax
push eax
mov ecx, esi
call fcn.0043295f
mov ecx, esi
call fcn.0040839f
pop edi
mov ecx, eax
pop esi
jmp 0x4342a0
push 0xffffffffffffffff
push 0x44fee8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x464628]
xor eax, esp
mov dword [esp + 4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x464628]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 8]
test edi, edi
jne 0x4342e2
xor al, al
jmp 0x4343a7
add edi, 0x20
mov dword [esp + 0x14], edi
je 0x4342f8
mov eax, dword [edi]
test eax, eax
je 0x4342f8
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x24], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x434382
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea ebx, [esi + 4]
push 1
push ebx
call ebp
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x433db0
push 0
push 0
call fcn.0044e4ae
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
je 0x43436b
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x24]
test eax, eax
je 0x434356
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x43436b
mov bl, 1
jmp 0x434384
push 0xffffffffffffffff
push ebx
call ebp
dec eax
jne 0x43437a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.00433f50
xor bl, bl
mov dword [esp + 0x24], 0xffffffff
test edi, edi
je 0x4343a5
mov eax, dword [edi]
test eax, eax
je 0x43439d
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x14], 0
mov al, bl
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00437430
add esp, 0x14
ret
Function at 0x434f5e
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x45004d
call fcn.0043b2f8
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x435056
cmp byte [esi + 0x46], bl
je 0x435056
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
movzx eax, ax
cmp di, ax
jne 0x434f9a
xor al, al
jmp 0x435058
push ebx
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.00435217
mov dword [ebp - 4], ebx
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov ebx, edi
cmp eax, 0x10
jae 0x434fc7
lea ebx, [ebp - 0x28]
mov edi, ebx
mov ecx, dword [esi + 0x40]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, ebx
mov edx, dword [ecx]
push eax
push edi
lea eax, [esi + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x434fee
dec eax
je 0x434ff2
dec eax
dec eax
je 0x435044
xor bl, bl
jmp 0x435046
mov byte [esi + 0x46], 0
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
mov ecx, edi
cmp eax, 0x10
jae 0x435002
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
sub ebx, ecx
je 0x43502a
cmp eax, 0x10
jae 0x435011
lea edi, [ebp - 0x28]
push dword [esi + 0x50]
push ebx
push 1
push edi
call fcn.0043c923
add esp, 0x10
cmp ebx, eax
jne 0x434fea
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
cmp byte [esi + 0x46], 0
je 0x435044
test ebx, ebx
jne 0x434fbb
push ebx
push 8
lea ecx, [ebp - 0x28]
call fcn.004351b6
jmp 0x434fb5
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040161a
mov al, bl
jmp 0x435058
mov al, 1
call fcn.0043b2a7
ret
Function at 0x4355b1
Capabilities:
Write file on windows

Disassembly:
push 0x30
mov eax, 0x45007a
call fcn.0043b2f8
mov edi, ecx
mov ebx, dword [ebp + 8]
mov esi, 0xffff
cmp si, bx
jne 0x4355d3
xor eax, eax
jmp 0x43575b
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x4355ff
mov edx, dword [edi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x4355ff
dec dword [edx]
mov ax, bx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x43575b
cmp dword [edi + 0x50], 0
je 0x435758
mov ecx, edi
call fcn.00435156
xor ecx, ecx
cmp dword [edi + 0x40], ecx
jne 0x435632
push dword [edi + 0x50]
push ebx
call fcn.00434bcd
pop ecx
pop ecx
test al, al
je 0x435758
movzx esi, bx
jmp 0x435758
push ecx
movzx eax, bx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
push 8
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x14], 0xf
call fcn.00435217
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
cmp ecx, 0x10
jae 0x435665
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], eax
cmp ecx, 0x10
jae 0x435673
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov ecx, dword [edi + 0x40]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x2c]
mov edx, dword [ecx]
push eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x32]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [edi + 0x48]
push eax
call dword [edx + 0x1c]
mov ebx, dword [ebp + 8]
test eax, eax
js 0x43574c
cmp eax, 1
jg 0x435730
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
cmp ecx, 0x10
jb 0x4356c0
mov dword [ebp - 0x2c], eax
jmp 0x4356c6
lea edx, [ebp - 0x28]
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x38]
sub edx, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], edx
je 0x4356f8
cmp ecx, 0x10
jae 0x4356d9
lea eax, [ebp - 0x28]
push dword [edi + 0x50]
push edx
push 1
push eax
call fcn.0043c923
mov edx, dword [ebp - 0x2c]
add esp, 0x10
cmp edx, eax
jne 0x435728
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
lea ebx, [ebp - 0x34]
mov byte [edi + 0x46], 1
cmp dword [ebp - 0x3c], ebx
mov ebx, dword [ebp + 8]
jne 0x435725
test edx, edx
jne 0x43565d
cmp dword [ebp - 0x18], 0x20
jae 0x43572b
push edx
push 8
lea ecx, [ebp - 0x28]
call fcn.004351b6
jmp 0x435654
movzx esi, bx
movzx esi, si
movzx esi, si
jmp 0x435749
cmp eax, 3
jne 0x43574c
push dword [edi + 0x50]
push dword [ebp - 0x34]
call fcn.00434bcd
pop ecx
pop ecx
test al, al
je 0x435749
movzx esi, bx
movzx esi, si
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040161a
mov ax, si
call fcn.0043b2a7
ret 4