joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001000
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x10001027
or eax, 0xffffffff
jmp 0x100010cc
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 0x800c
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1000104a
or eax, 0xffffffff
jmp 0x100010cc
push 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x10001067
or eax, 0xffffffff
jmp 0x100010cc
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
push 0x6610
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x10001089
or eax, 0xffffffff
jmp 0x100010cc
lea eax, [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x100010aa
or eax, 0xffffffff
jmp 0x100010cc
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000515c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000519b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000519b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000519b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000519b
cmp dword [ecx + 0x74], 0xe
jbe 0x1000519b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10007e1f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10007ebc
push ebx
push esi
call fcn.10007de8
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10007d7c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10007e69
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10007ebb
push edi
push eax
call fcn.10008dda
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10007e89
call fcn.100068c4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10007eba
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10007d7c
add esp, 0x20
test eax, eax
jne 0x10007ea8
push edi
call fcn.100068c4
jmp 0x10007eb0
push ebx
call fcn.100068c4
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10008129
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f518
push 0x1000f510
push str.FlsAlloc
push 0x1f
call fcn.10008045
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000815d
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e13c]
call esi
jmp 0x10008163
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100081a7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f528
push 0x1000f520
push str.FlsGetValue
push 0x21
call fcn.10008045
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100081de
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e13c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100081e6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f530
push 0x1000f528
push str.FlsSetValue
push 0x22
call fcn.10008045
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10008220
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1000e13c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000d8a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000d8cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000d8cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x405ab0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section..data
lea edi, [esi - 0x4000]
push edi
jmp 0x405aca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x405ad1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x405ac0
mov eax, 1
add ebx, ebx
jne 0x405ae3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x405ad8
jne 0x405af4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x405ad8
xor ecx, ecx
sub eax, 3
jb 0x405b08
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x405b7a
mov ebp, eax
add ebx, ebx
jne 0x405b13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x405b20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x405b44
inc ecx
add ebx, ebx
jne 0x405b30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x405b25
jne 0x405b41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x405b25
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x405b64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x405b55
jmp 0x405ac6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x405b64
add edi, ecx
jmp 0x405ac6
pop esi
mov edi, esi
mov ecx, 0xb
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x405b82
cmp byte [edi], 0
jne 0x405b82
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x405b87
lea edi, [esi + 0x3000]
mov eax, dword [edi]
or eax, eax
je 0x405bf6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x405bb4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5058]
or eax, eax
je 0x405bf0
mov dword [ebx], eax
add ebx, 4
jmp 0x405bd1
call dword [esi + 0x5054]
mov ebp, dword [esi + 0x505c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x405c2a
sub esp, 0xffffff80
jmp 0x401150
Function at 0x644283
Capabilities:
Encode data using xor

Disassembly:
out 0x56, al
pop ss
fdivr dword [esi]
pushal
sal ebp, cl
xchg ecx, eax
loope 0x6442f6
sti
sbb ecx, dword [eax - 0x7f]
push es
out 0xa1, al
stosd dword es:[edi], eax
lodsd eax, dword [esi]
sub byte [edx - 0xa], ch
mov ah, 0x26
adc ah, cl
dec eax
xor dword [edx], 0xd661a79b
push esp
xchg esi, eax
adc bh, ah
jg 0x644293
sub edi, edi
invalid
xchg esi, eax
jmp 0x64431e
invalid
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x42e01e
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x510024
Capabilities:
Packed with generic packer

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [edx], al
add al, byte [eax]
add byte [eax], al
cld
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add al, byte [eax]
add byte [eax], al
cld
invalid
stc
jb 0x51002e
pop ds
xor esi, dword [ecx - 0x49]
jno 0x50ffe2
cwde
leave
jmp 0x51008f
pushal
jmp 0x510034
call 0x51003f
dec ecx
stc
mov dl, 0xed
pop ecx
pop ebx
jb 0x510049
jne 0x50ffd9
jge 0x510029
sbb dword [edx - 0x383c7edc], 0xffffffff
invalid
add ebx, 0xffffffc7
jmp 0x510058
cmp dword [ebx], 0
stc
jmp 0x510067
je 0x5100ed
jmp 0x510076
mov ecx, ebx
jmp 0x510081
add ebx, 4
jmp 0x510089
mov edx, dword [ebx]
jmp 0x510097
and eax, 0x8ced9cec
in eax, dx
cmp ebp, dword [ebx + 3]
sar ecx, cl
add edx, ebx
stc
jb 0x5100a3
mov ah, 0xb1
mov ebx, 0xc91a740d
mov eax, dword [ebx + 4]
jmp 0x5100ac
sub dword [edx], 0x3c62176a
jmp 0x5100b6
add edx, 4
jmp 0x5100bf
sub eax, 1
jmp 0x5100c6
jne 0x5100a6
jmp 0x5100d0
add ebx, 8
jmp 0x5100d7
sub dword [ecx], 1
stc
jb 0x5100de
and ecx, dword [edi]
test dword [eax + 0x72ffffff], esp
add dh, byte [ecx + 0xee83b]
add byte [eax], al
jne 0x510084
jb 0x5100e8
mov cl, 0x3b
call 0x5100fb
jmp 0x5100f1
popal
jmp 0x5100f6
jmp 0x50ed00

Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..rsrc
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
je 0x433072
nop
nop
nop
nop
nop
mov ebx, 0x40de38
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x53bd4d23
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x5e516560
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00402860
add esp, 8
push 0x402a90
mov edx, dword [0x405694]
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.00402eb0
add esp, 0xc
lea ecx, [ebp - 0x24]
push ecx
call fcn.00402af0
add esp, 4
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x401097
cmp dword [ebp - 4], 0
je 0x40106d
mov dword [0x405688], 0
mov edx, dword [ebp - 4]
push edx
call sub.cgraph.dll_agclose
add esp, 4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
mov ecx, dword [0x405690]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.004010b0
add esp, 8
mov eax, dword [0x405690]
push eax
call dword [sym.imp.MSVCR90.dll_fflush]
add esp, 4
jmp 0x40103c
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCR90.dll_exit]
mov esp, ebp
pop ebp
ret

Function at 0x402750
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00402720
add esp, 4
mov dword [ebp - 4], eax
push 2
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR90.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x40277f
mov eax, dword [ebp - 4]
jmp 0x4027d5
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004026b0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4027c9
mov ecx, dword [ebp + 8]
push ecx
push str.Illegal_spline_end:__s_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.MSVCR90.dll_exit]
mov edx, dword [ebp + 0x10]
mov dword [edx], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4029a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x402a16
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx]
cmp eax, 0x72
jne 0x4029d4
mov dword [ebp - 4], str.reading
jmp 0x4029db
mov dword [ebp - 4], str.writing
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x40568c]
push eax
push str._s:_could_not_open_file__s_for__s_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0x14
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR90.dll_perror]
add esp, 4
push 1
call dword [sym.imp.MSVCR90.dll_exit]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x402a20
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x40568c]
push eax
mov ecx, dword [str.Usage:__s_______files__n___o_file___:_output_to__file___stdout__n_______print_usage_nIf_no_files_are_specified__stdin_is_used_n]
push ecx
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCR90.dll_exit]
pop ebp
ret
Function at 0x40141d
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x214
lea eax, [esp]
push ebp
push esi
mov esi, dword [esp + 0x228]
push edi
mov edi, dword [esp + 0x22c]
and esi, 1
push eax
and edi, 0x300
mov eax, edi
or eax, 9
push eax
push dword [esp + 0x230]
push dword [esp + 0x230]
call fcn.004068ba
test eax, eax
jne 0x40152f
xor ebp, ebp
test byte [esp + 0x22c], 2
je 0x401492
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebp
push eax
lea eax, [esp + 0x28]
push eax
push ebp
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x40150b
push 0x105
lea eax, [esp + 0x18]
push eax
push ebp
push dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
call ebp
test eax, eax
jne 0x4014e0
test esi, esi
jne 0x40150b
push dword [esp + 0x22c]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call fcn.0040141d
test eax, eax
jne 0x4014e0
push 0x105
lea eax, [esp + 0x18]
push eax
push 0
push dword [esp + 0x18]
call ebp
test eax, eax
je 0x4014b1
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00407189
test eax, eax
jne 0x40151c
push dword [esp + 0x228]
push dword [esp + 0x228]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x40152f
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x40152f
push 0
push edi
push dword [esp + 0x230]
push dword [esp + 0x230]
call eax
pop edi
pop esi
pop ebp
add esp, 0x214
ret 0xc
Function at 0x403604
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x9c
mov ecx, dword [esp + 0xa0]
mov eax, 0x435d40
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xb8]
mov ebx, 0x8000
test edi, edi
cmovne ebx, dword [esp + 0xbc]
xor esi, esi
test edi, edi
cmovne eax, edi
mov dword [esp + 0x1c], eax
test ecx, ecx
js 0x40364c
mov eax, dword [0x47a298]
add eax, ecx
push eax
call fcn.004035ed
push 4
lea eax, [esp + 0x14]
push eax
push dword [0x40c010]
call fcn.004071eb
test eax, eax
je 0x403835
mov eax, dword [esp + 0x10]
test eax, eax
jns 0x4037d7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [0x4206ac], esi
and dword [0x4206a8], esi
mov dword [esp + 0x14], eax
mov eax, 0x421d30
mov dword [0x429d38], eax
mov dword [0x429d34], eax
mov eax, dword [esp + 0x10]
and eax, 0x7fffffff
mov dword [0x420190], 8
mov ecx, eax
mov dword [0x429d30], 0x429d30
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ecx
jbe 0x4037cf
mov ebp, 0x4000
cmp ecx, ebp
cmovl ebp, ecx
push ebp
push 0x431d40
call fcn.004035d7
test eax, eax
je 0x403835
sub dword [esp + 0x10], ebp
mov dword [0x420184], ebp
mov ebp, dword [esp + 0x1c]
mov dword [0x420180], 0x431d40
push 0x420180
mov dword [0x420188], ebp
mov dword [0x42018c], ebx
call fcn.00407b23
mov dword [esp + 0x28], eax
test eax, eax
js 0x4037d3
mov eax, dword [0x420188]
sub eax, ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x47a334], 1
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], eax
je 0x403788
sub eax, dword [esp + 0x14]
cmp eax, 0xc8
ja 0x40374c
test ecx, ecx
jne 0x403788
mov eax, dword [esp + 0x20]
push eax
push 0x64
sub eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [esp + 0x30]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
push 0
call fcn.00406331
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4037c7
test edi, edi
jne 0x4037ac
push eax
push ebp
push dword [esp + 0xbc]
call fcn.004072ae
test eax, eax
je 0x40381a
mov eax, dword [esp + 0x18]
jmp 0x4037b8
mov ebp, dword [0x420188]
sub ebx, eax
mov dword [esp + 0x1c], ebp
add esi, eax
cmp dword [esp + 0x28], 1
jne 0x4036f9
jmp 0x4037cf
test ecx, ecx
jg 0x4036c4
mov eax, esi
jmp 0x403838
push 0xfffffffffffffffc
jmp 0x403837
test edi, edi
jne 0x40381e
test eax, eax
jle 0x4037cf
mov ebp, 0x431d40
cmp eax, ebx
mov edi, ebx
cmovl edi, eax
push edi
push ebp
call fcn.004035d7
test eax, eax
je 0x403835
push edi
push ebp
push dword [esp + 0xbc]
call fcn.004072ae
test eax, eax
je 0x40381a
mov eax, dword [esp + 0x10]
add esi, edi
sub eax, edi
mov dword [esp + 0x10], eax
test eax, eax
jg 0x4037e4
jmp 0x4037cf
push 0xfffffffffffffffe
jmp 0x403837
mov esi, dword [esp + 0xbc]
cmp eax, esi
cmovl esi, eax
push esi
push edi
call fcn.004035d7
test eax, eax
jne 0x4037cf
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret 0x10
Function at 0x403845
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 4], 0
je 0x403864
mov eax, dword [0x420178]
test eax, eax
je 0x40385c
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x420178], 0
ret
cmp dword [0x420178], 0
je 0x403875
push 0
call fcn.004067f1
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x47a240]
jbe 0x4038a8
push 0
push 0x403b0b
push 0
push 0x6f
push dword [0x472234]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
mov dword [0x420178], eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x4038a9
Capabilities:
Get file size

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x2000
mov esi, 0x4e7000
add eax, 0x3e8
push esi
push ebx
mov dword [0x47a240], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 3
push 0x80000000
push esi
call fcn.004071be
mov ebp, eax
mov dword [0x40c010], ebp
cmp ebp, 0xffffffff
jne 0x403902
mov eax, 0x409cb0
jmp 0x403b01
push esi
mov esi, 0x4d7000
push esi
call fcn.004073bd
push esi
call fcn.004075b2
push eax
push 0x4eb000
call fcn.004073bd
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [0x420170], esi
test esi, esi
je 0x403a2e
mov ebx, dword [esp + 0x38]
cmp dword [0x47a248], 0
mov eax, 0x8000
mov edi, 0x200
cmovne edi, eax
cmp esi, edi
cmovb edi, esi
push edi
push 0x429d40
call fcn.004035d7
test eax, eax
je 0x403af4
cmp dword [0x47a248], 0
jne 0x4039f0
push 0x1c
push 0x429d40
lea eax, [esp + 0x20]
push eax
call fcn.00406efd
test dword [esp + 0x18], 0xfffffff0
jne 0x4039fd
cmp dword [esp + 0x1c], 0xdeadbeef
jne 0x4039fd
cmp dword [esp + 0x28], 0x74736e49
jne 0x4039fd
cmp dword [esp + 0x24], 0x74666f73
jne 0x4039fd
cmp dword [esp + 0x20], 0x6c6c754e
jne 0x4039fd
mov eax, dword [0x420174]
or ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
mov dword [0x47a248], eax
mov eax, ebx
and eax, 2
or dword [0x47a320], eax
cmp ecx, esi
ja 0x403afc
mov eax, ebx
and al, 0xc
cmp al, 4
je 0x403a26
inc dword [esp + 0x10]
lea esi, [ecx - 4]
cmp edi, esi
jbe 0x4039fd
mov edi, esi
jmp 0x4039fd
test bl, 2
jne 0x4039fd
push 0
call fcn.00403845
pop ecx
cmp esi, dword [0x420170]
jae 0x403a18
push edi
push 0x429d40
push dword [esp + 0x1c]
call fcn.004076dc
mov dword [esp + 0x14], eax
add dword [0x420174], edi
sub esi, edi
jne 0x40393c
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
push 1
call fcn.00403845
cmp dword [0x47a248], 0
pop ecx
je 0x403afc
test ebx, ebx
je 0x403a76
push dword [0x420174]
call fcn.004035ed
push 4
lea eax, [esp + 0x3c]
push eax
push dword [0x40c010]
call fcn.004071eb
test eax, eax
je 0x403afc
cmp edi, dword [esp + 0x38]
jne 0x403afc
push dword [esp + 0x2c]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [0x47a248]
mov esi, eax
add ecx, 0x1c
push ecx
call fcn.004035ed
push dword [esp + 0x2c]
xor ebx, ebx
push esi
push ebx
push 0xffffffffffffffff
call fcn.00403604
cmp eax, dword [esp + 0x2c]
jne 0x403afc
test byte [esp + 0x18], 1
mov dword [0x47a250], esi
mov eax, dword [esi]
mov dword [0x47a24c], eax
je 0x403ac2
inc dword [0x47a244]
push 8
pop ecx
lea eax, [esi + 0x44]
lea eax, [eax - 8]
add dword [eax], esi
sub ecx, 1
jne 0x403ac8
push 1
push ebx
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0x3c], eax
lea eax, [esi + 4]
push 0x40
push eax
push 0x47a260
call fcn.00406efd
xor eax, eax
jmp 0x403b01
push 1
call fcn.00403845
pop ecx
mov eax, 0x409cc8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
Function at 0x406415
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40642f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4