joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a2b90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4a2bea
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004a2b80
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004921d4
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00491dd4
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2bf1
lea eax, [ebp - 4]
call fcn.004046a8
ret

Function at 0x4a77c4
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x41651c]
call fcn.004051a0
xor eax, eax
push ebp
push 0x4a7908
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4b5ce8], 0
jne 0x4a7817
mov ecx, dword [0x4b5dac]
mov dl, 1
mov eax, dword [0x407d40]
call fcn.0040ce6c
call fcn.00404060
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00403180
mov eax, ebx
call fcn.00404f58
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4a7918
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406238
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404f68
test eax, eax
jle 0x4a78af
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4a78a8
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404930
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404918
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408b98
test eax, eax
jne 0x4a78a8
mov ebx, 0x15
jmp 0x4a78b4
mov ebx, 0x10
jmp 0x4a78b4
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4b5ce8]
call fcn.004a771c
mov eax, dword [ebp - 8]
call fcn.004a771c
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406250
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a790f
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004046cc
lea eax, [ebp - 0x10]
mov edx, dword [0x41651c]
call fcn.00405270
ret
Function at 0x4afddc
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4afde4
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4aff96
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [ebp - 8], 0
jne 0x4afe12
mov bl, 1
jmp 0x4aff73
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x4aff73
inc esi
mov dword [ebp - 0x10], 0
cmp byte [0x4b91a8], 0
jne 0x4aff73
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.00408c08
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0xc]
call fcn.00404740
push 0x4affb0
push dword [ebp - 0xc]
push 0x4affc8
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404a28
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004ae4dc
cmp dword [ebp - 0xc], 0
je 0x4aff69
mov eax, 0x4b9198
mov edx, dword [ebp - 0xc]
call fcn.004046fc
mov byte [0x4b919c], 0
push 0
push 0x4af1ac
call sub.user32.dll_EnumWindows
push 0x3e8
call sub.kernel32.dll_Sleep_1
xor edi, edi
cmp byte [0x4b91a8], 0
jne 0x4aff73
cmp byte [0x4b919c], 0
jne 0x4afee8
push 0x64
call sub.kernel32.dll_Sleep_1
mov eax, dword [0x4b626c]
mov eax, dword [eax]
call fcn.0045dd60
inc edi
cmp edi, 0x64
jne 0x4afeb9
cmp byte [0x4b919c], 0
je 0x4aff18
push 0x4affd8
push dword [ebp - 0xc]
push 0x4affec
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404a28
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004ae4dc
jmp 0x4aff69
cmp edi, 0x64
jne 0x4aff44
push 0x4affd8
push dword [ebp - 0xc]
push 0x4afffc
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404a28
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.004ae4dc
jmp 0x4aff69
push 0x4affd8
push dword [ebp - 0xc]
push 0x4b001c
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404a28
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.004ae4dc
inc dword [ebp - 0x10]
dec esi
jne 0x4afe2d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aff9d
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.004046cc
lea eax, [ebp - 0xc]
call fcn.004046a8
ret
Function at 0x4b0024
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4b0138
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4b005a
mov byte [ebp - 5], 1
jmp 0x4b0115
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4b0111
inc ebx
mov dword [ebp - 0x10], 0
cmp byte [0x4b91a8], 0
jne 0x4b0115
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.00408c08
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0xc]
call fcn.00404740
cmp dword [ebp - 0xc], 0
je 0x4b0107
push 0x4b0154
push dword [ebp - 0xc]
push 0x4b016c
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404a28
mov edx, dword [ebp - 0x18]
mov eax, esi
call fcn.004ae4dc
push 1
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404b68
push eax
push 0x4b0174
mov eax, esi
call fcn.00444d04
push eax
call sub.shell32.dll_ShellExecuteA
push 0x3e8
call sub.kernel32.dll_Sleep_1
mov eax, dword [0x4b626c]
mov eax, dword [eax]
call fcn.0045dd60
inc dword [ebp - 0x10]
dec ebx
jne 0x4b0075
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b013f
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004046cc
lea eax, [ebp - 0xc]
call fcn.004046a8
ret
Function at 0x4b0b14
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x14], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b58
xor eax, eax
push ebp
push 0x4b0c4c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b68
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x4b0c23
mov eax, dword [ebp - 0xc]
call fcn.00408934
mov ebx, eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4b0c23
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4b0c5c
push ebx
call sub.version.dll_VerQueryValueA
cmp dword [ebp - 0x10], 0
je 0x4b0bc8
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.00407700
mov edx, dword [ebp - 0x10]
mov dx, word [edx]
call fcn.004076f4
lea ecx, [ebp - 0x14]
mov edx, 8
call fcn.0040913c
push 0x4b0c80
push dword [ebp - 0x14]
push 0x4b0c9c
lea eax, [ebp - 0x118]
mov edx, 3
call fcn.00404a28
mov edx, dword [ebp - 0x118]
lea eax, [ebp - 0x114]
call fcn.00409a50
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4b0c19
mov edx, edi
mov eax, dword [ebp - 0x10]
call fcn.00409ba4
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004027b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b0c53
lea eax, [ebp - 0x118]
call fcn.004046a8
lea eax, [ebp - 0x14]
call fcn.004046a8
lea eax, [ebp - 4]
call fcn.004046a8
ret
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x5f952f22
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..text_1
nop
mov ebx, 0x42f314
nop
mov ecx, 0x1c3c3887
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x16a59f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.FKP1
lea edi, [esi - 0x1272000]
push edi
or ebp, 0xffffffff
jmp 0x16a5a12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a5a19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a5a08
mov eax, 1
add ebx, ebx
jne 0x16a5a2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a5a3c
jne 0x16a5a5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a5a5b
dec eax
add ebx, ebx
jne 0x16a5a48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a5a20
add ebx, ebx
jne 0x16a5a57
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x16a5aad
xor ecx, ecx
sub eax, 3
jb 0x16a5a73
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a5ae2
sar eax, 1
mov ebp, eax
jmp 0x16a5a7e
add ebx, ebx
jne 0x16a5a7e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a5a4c
inc ecx
add ebx, ebx
jne 0x16a5a8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a5a4c
add ebx, ebx
jne 0x16a5a99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a5a8e
jne 0x16a5aaa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a5a8e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x16a5acc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a5abe
jmp 0x16a5a0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a5acc
add edi, ecx
jmp 0x16a5a0e
pop esi
mov edi, esi
mov ecx, 0x34f3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a5aea
cmp byte [edi], 0x16
jne 0x16a5aea
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 0x16a5aef
lea edi, [esi + 0x12a2000]
mov eax, dword [edi]
or eax, eax
je 0x16a5b5e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a67a0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a6890]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a5b1c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a6894]
or eax, eax
je 0x16a5b58
mov dword [ebx], eax
add ebx, 4
jmp 0x16a5b39
call dword [esi + 0x12a68a4]
mov ebp, dword [esi + 0x12a6898]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x16a5b92
sub esp, 0xffffff80
jmp 0x46c1ac

Function at 0x411014
Capabilities:
Terminate process

Disassembly:
jmp 0x413300
jmp fcn.00413340
cmp ecx, dword [0x417030]
jne 0x41330a
repz ret
jmp 0x41108c
Function at 0x10001a63
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebx + ebx]
push 0x10001178
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10001bf7
mov esi, eax
test esi, esi
jne 0x10001b5c
push 0x100011b0
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.10001b86
mov esi, eax
test esi, esi
jne 0x10001b5c
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10001b86
mov esi, eax
test esi, esi
jne 0x10001b5c
lea eax, [ebp - 0x210]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x10001b2f
lea eax, [ebp - 0x214]
push eax
push edi
push esi
push esi
push 0x100011b4
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x10001b3c
jle 0x10001b5c
movzx esi, si
or esi, 0x80070000
jmp 0x10001b5c
push 0x100011b0
push ebx
push edi
call fcn.10001b86
mov esi, eax
test esi, esi
jne 0x10001b5c
push 0x100011c0
push ebx
push edi
call fcn.10001b86
mov esi, eax
cmp dword [ebp - 0x210], 0
je 0x10001b71
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10002090
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401370
Capabilities:
Accept command line arguments
Inspect load icon resource

Disassembly:
sub esp, 0x208
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call sub.MFC42.DLL_AfxWinInit
test eax, eax
jne 0x4013ba
mov eax, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push str.Fatal_Error:_MFC_initialization_failed
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___class_std::basic_ostream_char__struct_std::char_traits_char_____char_const__]
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
add esp, 0xc
mov eax, 1
add esp, 0x208
ret
push edi
call sub.MFC42.DLL_AfxGetModuleState
xor eax, eax
mov ecx, str.Five.ico
mov ax, cx
push eax
push 0xe
push eax
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x109]
mov byte [esp + 0x108], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 4]
push 0x104
push edx
push 0
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
pop edi
je 0x401438
lea eax, [esp]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x401438
mov byte [eax], 0
lea ecx, [esp]
push str.Five.exe
push ecx
push str._s_s
lea edx, [esp + 0x110]
push 0x104
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
lea eax, [esp + 0x118]
push eax
call fcn.00401040
add esp, 0x18
xor eax, eax
add esp, 0x208
ret
Function at 0x401580
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4020c8
push 0x4016b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x4031cc], 0xffffffff
or dword [0x4031d0], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4031c4]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x4031c0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4031c8], eax
call fcn.004016b7
cmp dword [0x4030e0], 0
jne 0x401603
push 0x4016b4
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.004016a2
push 0x403018
push 0x403014
call sub.MSVCRT.dll__initterm
mov eax, dword [0x4031bc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4031b8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x403010
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00401370
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x402c22
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, 0x42ac00
push 0x400
add eax, 0x3e8
push esi
push ebx
mov dword [0x423e8c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 3
push 0x80000000
push esi
call fcn.004056b4
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0xc], edi
mov dword [0x409014], edi
jne 0x402c7c
mov eax, 0x409104
jmp 0x402e54
push esi
mov esi, 0x429c00
push esi
call fcn.004059dd
push esi
call fcn.00405517
push eax
push 0x42b000
call fcn.004059dd
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [0x41f028], eax
mov esi, eax
jle 0x402d97
mov ebx, 0x417028
mov eax, dword [0x423e94]
mov edi, esi
neg eax
sbb eax, eax
and eax, 0x7e00
add eax, 0x200
cmp esi, eax
jl 0x402cd0
mov edi, eax
push edi
push ebx
call fcn.0040304e
test eax, eax
je 0x402e01
cmp dword [0x423e94], 0
jne 0x402d62
push 0x1c
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.00405675
mov eax, dword [ebp - 0x28]
test eax, 0xfffffff0
jne 0x402d70
cmp dword [ebp - 0x24], 0xdeadbeef
jne 0x402d70
cmp dword [ebp - 0x18], 0x74736e49
jne 0x402d70
cmp dword [ebp - 0x1c], 0x74666f73
jne 0x402d70
cmp dword [ebp - 0x20], 0x6c6c754e
jne 0x402d70
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [0x40b018]
and eax, 2
or dword [0x423f20], eax
mov eax, dword [ebp - 0x10]
cmp eax, esi
mov dword [0x423e94], ecx
jg 0x402dfa
test byte [ebp + 8], 8
jne 0x402d54
test byte [ebp + 8], 4
jne 0x402d95
inc dword [ebp - 4]
lea esi, [eax - 4]
cmp edi, esi
jbe 0x402d70
mov edi, esi
jmp 0x402d70
test byte [ebp + 8], 2
jne 0x402d70
push 0
call fcn.00402bbe
pop ecx
cmp esi, dword [0x41f028]
jge 0x402d85
push edi
push ebx
push dword [ebp - 8]
call fcn.00405d6b
mov dword [ebp - 8], eax
add dword [0x40b018], edi
sub esi, edi
test esi, esi
jg 0x402cb5
xor ebx, ebx
push 1
call fcn.00402bbe
cmp dword [0x423e94], ebx
pop ecx
je 0x402dfa
cmp dword [ebp - 4], ebx
je 0x402dce
push dword [0x40b018]
call fcn.00403080
lea eax, [ebp + 8]
push 4
push eax
call fcn.0040304e
test eax, eax
je 0x402dfa
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x402dfa
push dword [ebp - 0x14]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov eax, dword [0x423e94]
add eax, 0x1c
push eax
call fcn.00403080
push dword [ebp - 0x14]
push esi
push ebx
push 0xffffffffffffffff
call fcn.00402e5b
cmp eax, dword [ebp - 0x14]
je 0x402e0b
mov eax, 0x409038
jmp 0x402e54
push 1
call fcn.00402bbe
pop ecx
jmp 0x402dfa
test byte [ebp - 0x28], 1
mov dword [0x423e90], esi
mov eax, dword [esi]
mov dword [0x423e98], eax
je 0x402e24
inc dword [0x423e9c]
push 8
lea eax, [esi + 0x44]
pop ecx
sub eax, 8
add dword [eax], esi
dec ecx
jne 0x402e2a
push 1
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0x3c], eax
add esi, 4
push 0x40
push esi
push 0x423ea0
call fcn.00405675
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x402e5b
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402e78
mov dword [ebp - 8], RegEnumValueA
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402e87
mov ebx, 0x40f020
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402e9c
mov ecx, dword [0x423ed8]
add ecx, eax
push ecx
call fcn.00403080
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.0040304e
test eax, eax
je 0x402ff9
test byte [ebp + 0x17], 0x80
je 0x402fe2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40af90
mov dword [ebp - 0xc], eax
call fcn.00405dd9
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x403044
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402eec
mov esi, dword [ebp + 0x14]
mov edi, 0x40b020
push esi
push edi
call fcn.0040304e
test eax, eax
je 0x402ff9
sub dword [ebp + 0x14], esi
mov dword [0x40afa8], edi
mov dword [0x40afac], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40af90
mov dword [0x40afb0], ebx
mov dword [0x40afb4], eax
call fcn.00405df9
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x402fda
mov esi, dword [0x40afb0]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x423f34], 1
mov edi, eax
je 0x402f8e
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402f5b
cmp dword [ebp + 0x14], 0
jne 0x402f8e
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push 0x409120
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00404d7b
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x402fcf
cmp dword [ebp + 0x10], eax
jne 0x402fb7
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fde
cmp dword [ebp - 0x10], esi
jne 0x402fde
add dword [ebp - 4], esi
jmp 0x402fc3
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40afb0]
cmp dword [ebp - 0x14], 1
jne 0x402f0f
jmp 0x403044
cmp dword [ebp + 0x14], eax
jg 0x402edf
jmp 0x403044
push 0xfffffffffffffffc
jmp 0x402ffb
push 0xfffffffffffffffe
jmp 0x402ffb
test edi, edi
je 0x403039
cmp dword [ebp + 0x14], esi
jge 0x402fee
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.0040304e
test eax, eax
jne 0x403041
push 0xfffffffffffffffd
pop eax
jmp 0x403047
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x403009
mov esi, dword [ebp + 0x14]
mov edi, 0x40b020
push esi
push edi
call fcn.0040304e
test eax, eax
je 0x402ff9
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fde
cmp esi, dword [ebp + 0x10]
jne 0x402fde
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x402ffe
jmp 0x403044
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10