joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a70d
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 0x45a7aa
push ebx
push esi
call fcn.0045a6d6
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.0045800a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x45a757
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x45a7a9
push edi
push eax
call fcn.00453a4d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x45a777
call fcn.004533ea
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x45a7a8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0045800a
add esp, 0x20
test eax, eax
jne 0x45a796
push edi
call fcn.004533ea
jmp 0x45a79e
push ebx
call fcn.004533ea
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 0x45a7ad
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x45a7be
pop esi
ret
push ebx
push edi
push esi
call fcn.0045a6d6
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00453a4d
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x45a7e6
push ebx
push esi
push edi
call fcn.0043dba0
add esp, 0xc
push 0
call fcn.004533ea
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x45af40
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045aa5b

Function at 0x45cee7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00453762
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45cf56
cmp esi, dword [ebp - 4]
je 0x45cf51
cmp dword [ebp + 0xc], 0
je 0x45cf51
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x45cf2e
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0045ca39
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x45cf58
xor eax, eax
inc eax
jmp 0x45cf58
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x45cfbd
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4790c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00453762
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00453762
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x45d034
cmp word [ecx], dx
je 0x45d034
mov eax, dword [0x470bac]
push edi
dec eax
push eax
push 0x470a98
call fcn.0045cf5c
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x45d0a7
cmp word [eax], dx
je 0x45d0a7
mov eax, dword [edi]
test eax, eax
je 0x45d058
cmp word [eax], dx
je 0x45d058
lea eax, [ebp - 0x10]
push eax
call fcn.0045c93f
jmp 0x45d061
lea eax, [ebp - 0x10]
push eax
call fcn.0045c9da
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x45d0d1
mov eax, dword [0x470a94]
push dword [ebp - 0x14]
dec eax
push eax
push 0x470788
call fcn.0045cf5c
add esp, 0xc
test al, al
je 0x45d0d1
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x45d09c
cmp word [eax], di
je 0x45d09c
lea eax, [ebp - 0x10]
push eax
call fcn.0045c93f
pop ecx
jmp 0x45d0d3
lea eax, [ebp - 0x10]
push eax
call fcn.0045c9da
jmp 0x45d099
mov eax, dword [edi]
test eax, eax
je 0x45d0be
cmp word [eax], dx
je 0x45d0be
lea eax, [ebp - 0x10]
push eax
call fcn.0045c8f4
pop ecx
jmp 0x45d0d1
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x45d19c
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0045cde1
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x45d19c
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x45d19c
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x45d19c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x45d129
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004549dc
test ebx, ebx
je 0x45d197
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004549dc
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45d19c
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45d19c
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00460ab2
add esp, 0x10
xor eax, eax
inc eax
jmp 0x45d19e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c313
leave
ret
Function at 0x45f721
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4790c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x45f764
call fcn.00445389
mov dword [eax], 0xf
call fcn.0044539c
mov dword [eax], 0xd
call fcn.0044165a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043c313
leave
ret
test eax, eax
jne 0x45f76b
inc eax
jmp 0x45f758
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x45f756
xor eax, eax
cmp ecx, 1
setne al
jmp 0x45f758

Function at 0x4624a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4624cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4624cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x43e5e3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp eax, 0
jne 0x43e606
mov eax, 0
jmp 0x43e683
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004158b1
add esp, 8
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
je 0x43e64c
and eax, 0x50
cmp eax, 0
jne 0x43e64c
mov dword [ebp - 0x10], 1
jmp 0x43e653
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp eax, 0
je 0x43e680
push str.hb_fsFileExists
push 0x1a8
push str..._sources_sourcecommonhbfsapi.c
mov eax, dword [ebp - 4]
push eax
call fcn.004156da
add esp, 0x10
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x440e00
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x440e55
push str.hb_getenv
push 0x5c
push str..._sources_sourcecommonhbgete.c
mov eax, dword [ebp - 8]
push eax
call fcn.00415684
add esp, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x44e2aa
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov eax, dword [ebp + 8]
movzx edx, word [eax + 0x10]
and edx, 0xff
cmp edx, 0x3c
je 0x44e42b
cmp edx, 0x3d
je 0x44e42b
cmp edx, 0x3e
je 0x44e42b
cmp edx, 0x3f
je 0x44e42b
cmp edx, 0x40
je 0x44e42b
cmp edx, 0x41
je 0x44e42b
cmp edx, 0x42
je 0x44e42b
cmp edx, 0x48
je 0x44e42b
cmp edx, 0x49
je 0x44e42b
cmp eax, 0
je 0x44e42b
cmp edx, 0x1f
je 0x44e42b
cmp edx, 0x1e
je 0x44e42b
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x10]
and eax, 0xff
cmp eax, 0x34
je 0x44e348
mov eax, 1
jmp 0x44e430
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp + 8], eax
jmp 0x44e40d
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x10]
and eax, 0xff
cmp eax, 0x35
jne 0x44e3c7
mov eax, dword [ebp - 4]
cmp eax, 0
je 0x44e3bd
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10]
and eax, 0xff
cmp eax, 0x1e
jne 0x44e3a7
mov eax, dword [ebp - 4]
lea eax, [eax + 0x10]
movzx edx, word [eax]
and edx, 0xff00
or edx, 0x18
mov word [eax], dx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp eax, edx
jne 0x44e37d
mov eax, 1
jmp 0x44e430
mov eax, dword [ebp - 4]
cmp eax, 0
jne 0x44e3ee
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x10]
and eax, 0xff
cmp eax, 0x1e
jne 0x44e3ee
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp word [eax + 0xe], 0
jne 0x44e405
mov edx, dword [ebp + 8]
mov word [edx + 0xe], 0xffff
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
cmp eax, 0
je 0x44e42b
movzx eax, word [eax + 0x10]
and eax, 0xff
cmp eax, 0x1f
jne 0x44e35c
mov eax, 0
mov esp, ebp
pop ebp
ret
Function at 0x457100
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov edx, dword [0x4ab750]
cmp eax, edx
jae 0x45712f
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x4ab754]
test byte [eax + edx*8 + 4], 1
jne 0x457141
mov dword [0x4a62dc], 9
or eax, 0xffffffff
jmp 0x457314
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
jne 0x45715c
xor eax, eax
jmp 0x457314
mov eax, dword [ebp + 8]
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x4ab754]
test byte [eax + edx*8 + 4], 0x20
je 0x457185
push 2
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00459a10
add esp, 0xc
mov eax, dword [ebp + 8]
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x4ab754]
test byte [eax + edx*8 + 4], 0x80
je 0x457263
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], 0
jmp 0x45724f
lea edi, [ebp - 0x411]
jmp 0x4571d1
mov eax, esi
inc esi
mov bl, byte [eax]
cmp bl, 0xa
jne 0x4571cc
inc dword [ebp - 4]
mov eax, edi
inc edi
mov byte [eax], 0xd
mov eax, edi
inc edi
mov byte [eax], bl
lea eax, [ebp - 0x411]
mov edx, edi
sub edx, eax
mov eax, edx
cmp eax, 0x400
jge 0x4571f2
mov eax, dword [ebp + 0xc]
mov edx, esi
sub edx, eax
mov eax, edx
cmp eax, dword [ebp + 0x10]
jb 0x4571b9
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x411]
mov edx, edi
sub edx, eax
mov eax, edx
push eax
lea eax, [ebp - 0x411]
push eax
mov eax, dword [ebp + 8]
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x4ab754]
mov eax, dword [eax + edx*8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x457244
mov eax, dword [ebp - 8]
add dword [ebp - 0xc], eax
lea edx, [ebp - 0x411]
mov ecx, edi
sub ecx, edx
mov edx, ecx
cmp eax, edx
jge 0x45724f
jmp 0x4572a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
jmp 0x4572a9
mov eax, dword [ebp + 0xc]
mov edx, esi
sub edx, eax
mov eax, edx
cmp eax, dword [ebp + 0x10]
jb 0x4571b1
jmp 0x4572a9
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x4ab754]
mov eax, dword [eax + edx*8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4572a0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
jmp 0x4572a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
jne 0x45730e
cmp dword [ebp - 0x10], 0
je 0x4572da
cmp dword [ebp - 0x10], 5
jne 0x4572cb
mov dword [0x4a62dc], 9
jmp 0x4572d5
mov eax, dword [ebp - 0x10]
push eax
call fcn.00458a50
pop ecx
or eax, 0xffffffff
jmp 0x457314
mov eax, dword [ebp + 8]
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x4ab754]
test byte [eax + edx*8 + 4], 0x40
je 0x4572ff
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4572ff
xor eax, eax
jmp 0x457314
mov dword [0x4a62dc], 0x1c
or eax, 0xffffffff
jmp 0x457314
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x457380
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4573a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00458a50
pop ecx
or eax, 0xffffffff
jmp 0x4573c5
mov eax, ebx
and eax, 1
je 0x4573c3
test byte [ebp + 0xc], 2
je 0x4573c3
mov dword [0x4a62dc], 0xd
or eax, 0xffffffff
jmp 0x4573c5
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x458620
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
cmp byte [esi], 0
jne 0x458652
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea esi, [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push esi
call fcn.00458460
add esp, 0x14
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
push eax
call fcn.00454a90
pop ecx
mov ebx, eax
test ebx, ebx
jne 0x458685
push 1
call fcn.004570f0
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
lea eax, [ebx + eax*4]
push eax
push ebx
push esi
call fcn.00458460
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0x4ab74c], eax
mov dword [0x4ab748], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4586c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 8]
jmp 0x4586f7
mov edx, ebx
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x4586e3
inc eax
mov esi, eax
cmp byte [ebx], 0x3d
je 0x4586f5
add dword [ebp - 4], esi
add ebx, esi
cmp byte [ebx], 0
jne 0x4586de
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.00454a90
pop ecx
mov edi, eax
mov dword [0x4ab854], eax
test eax, eax
jne 0x45871a
push 1
call fcn.004570f0
pop ecx
mov ebx, dword [ebp - 8]
jmp 0x458749
mov edx, ebx
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x458724
inc eax
mov esi, eax
cmp byte [ebx], 0x3d
je 0x458747
mov ecx, edi
mov edx, ebx
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x45873a
pop eax
add edi, esi
add ebx, esi
cmp byte [ebx], 0
jne 0x45871f
mov byte [edi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45c070
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0045c230
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4ab750]
cmp ebx, eax
jae 0x45c0ab
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4ab754]
test byte [edx + eax*8 + 4], 1
jne 0x45c0bd
mov dword [0x4a62dc], 9
or eax, 0xffffffff
jmp 0x45c205
push 1
push 0
push ebx
call fcn.00459a10
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x45c0e7
push 2
push 0
push ebx
call fcn.00459a10
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x45c0ef
or eax, 0xffffffff
jmp 0x45c205
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x45c1b7
lea eax, [ebp - 0x1014]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0045c260
add esp, 8
mov dword [ebp - 0x10], eax
cmp esi, 0x1000
jl 0x45c13f
mov dword [ebp - 0x1018], 0x1000
jmp 0x45c145
mov dword [ebp - 0x1018], esi
mov edi, dword [ebp - 0x1018]
cmp esi, 0x1000
jl 0x45c15f
mov dword [ebp - 0x101c], 0x1000
jmp 0x45c165
mov dword [ebp - 0x101c], esi
mov eax, dword [ebp - 0x101c]
push eax
mov eax, dword [ebp - 0x14]
push eax
push ebx
call fcn.00457100
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x45c19a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x45c195
mov dword [0x4a62dc], 0xd
mov dword [ebp - 4], edi
jmp 0x45c1a8
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x45c12b
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0045c260
add esp, 8
jmp 0x45c1f3
test esi, esi
jge 0x45c1f3
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00459a10
add esp, 0xc
push ebx
call fcn.00458a00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x45c1f3
mov dword [0x4a62dc], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00459a10
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4068a5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068c9
xor eax, eax
test eax, eax
je 0x4068dc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4068dc
xor ecx, ecx
jmp 0x4068df
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x4275ac], 0
push esi
jne 0x406a39
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a13
mov dword [ecx*4 + 0x4275a8], eax
inc ecx
cmp ecx, 0x100
jl 0x406a0e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a6a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4275a8]
xor eax, esi
inc ecx
dec edx
jne 0x406a4c
pop edi
not eax
pop esi
ret 0xc

Function at 0x401ae8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebx, section..text
push 0x67
push dword [0x4028f4]
call dword [sym.imp.USER32.dll_LoadBitmapA]
sub ebx, 0x1000
mov dword [0x4028f4], ebx
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
dec ecx
jne 0x401b11
push esp
mov eax, str.contents
mov dword [ebp - 4], eax
lea eax, [0x401187]
mov dword [ebp - 0x24], eax
mov ecx, dword [0x4028f4]
mov dword [ebp - 0x18], ecx
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0x67
push dword [0x4028f4]
call dword [sym.imp.USER32.dll_LoadBitmapA]
xor eax, eax
push eax
push dword [0x4028f4]
push eax
push eax
push 0x1f4
push 0x2f4
push 0x578
push 0xce4
push 0
mov ecx, str.frantically
push eax
push str.contents
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x402904], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x402904]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401bc9
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401bb0
pop ebp
ret 0x10
Function at 0x100046a1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x100046b0
pop dword [ebp - 0x38]
mov eax, 0x100046b0
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xff57b069
sub dword [ebp - 0x48], 0xb1056b1e
mov dword [ebp - 0x44], 0xd03c9e95
sub dword [ebp - 0x44], 0x9e095250
mov dword [ebp - 0x40], 0x5c1d3312
sub dword [ebp - 0x40], 0xfd0eee4
mov dword [ebp - 0x3c], 0x29040a5b
sub dword [ebp - 0x3c], 0x29040a5b
lea eax, [ebp - 0x48]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x7d25c5ec
sub dword [ebp - 0x48], 0x8b35c96
mov dword [ebp - 0x44], 0x804885ce
add dword [ebp - 0x44], 0xc123dba7
mov dword [ebp - 0x40], 0xb0ab2eed
add dword [ebp - 0x40], 0xb2c43d7f
mov dword [ebp - 0x3c], 0xc65b480a
add dword [ebp - 0x3c], 0x39a4b7f6
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x3263c47c
sub eax, 0x2263b31c
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x3e60e
push 0
call eax
mov ecx, 0x56b0
mov esi, eax
mov edx, 0xf1ad98c0
sub edx, 0xe1aa8ec0
add edx, dword [ebp - 0x38]
mov edi, 0xde989512
add edi, 0xef01dd36
xor dword [ebp - 0x24], edx
mov ebx, dword [edx]
add dword [ebp - 0x28], 0xdd77fc63
xor ebx, edi
sub dword [ebp - 0x30], edi
mov dword [esi], ebx
xor dword [ebp - 0x30], edi
add esi, 0x6e5a4b4c
add esi, 0x91a5b4b8
add edx, 0xfb3d4628
add edx, 0x4c2b9dc
loop 0x100047c2
add eax, 0x14d93
mov ebx, eax
add eax, 0x77a72f7a
sub eax, 0x77a72f75
mov ecx, 0xe408b294
sub ecx, 0xd408b294
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x10006724
Capabilities:
Link many functions at runtime

Disassembly:
push edi
mov edi, ecx
xor eax, eax
mov dword [edi], 0x100015dc
mov dword [edi + 0x38], eax
push 0x10001670
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
call fcn.100046a1
mov dword [edi + 4], eax
test eax, eax
je 0x100067db
push ebx
push esi
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x10001688
push eax
call esi
push 0x10001698
push dword [edi + 4]
mov dword [edi + 0x10], eax
call esi
push 0x100016ac
push dword [edi + 4]
mov dword [edi + 0x14], eax
call esi
push 0x100016bc
push dword [edi + 4]
mov dword [edi + 0x18], eax
call esi
push 0x100016d0
push dword [edi + 4]
mov dword [edi + 0x1c], eax
call esi
mov ebx, 0x100016e8
push ebx
push dword [edi + 4]
mov dword [edi + 0x20], eax
call esi
push ebx
push dword [edi + 4]
mov dword [edi + 0x24], eax
call esi
push 0x100016f4
push dword [edi + 4]
mov dword [edi + 0x28], eax
call esi
push 0x10001710
push dword [edi + 4]
mov dword [edi + 0x2c], eax
call esi
push 0x10001724
push dword [edi + 4]
mov dword [edi + 0x30], eax
call esi
pop esi
mov dword [edi + 0x34], eax
mov dword [edi + 8], 1
pop ebx
mov eax, edi
pop edi
ret