joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4050f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x108], edi
mov dword [ebp - 0x104], esi
cmp dword [ebp + 8], ebx
jle 0x405218
lea edi, [eax + 0x14]
mov eax, dword [0x4311fc]
test eax, eax
je 0x40514d
push esi
push 1
push eax
lea eax, [ebp - 0xf0]
push eax
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x40527d
movzx ecx, word [ebp - 0xf0]
mov esi, dword [sym.imp.MSVCR100.dll__swab]
push 2
lea edx, [ebp - 0xfc]
push edx
lea eax, [ebp - 0xf8]
push eax
mov dword [ebp - 0xf8], ecx
call esi
mov cx, word [ebp - 0xfc]
movzx edx, word [ebp - 0xec]
push 2
lea eax, [ebp - 0x100]
mov word [edi - 0x14], cx
push eax
lea ecx, [ebp - 0xf8]
push ecx
mov dword [ebp - 0xf8], edx
call esi
mov al, byte [ebp - 0x99]
mov cl, byte [ebp - 0x9a]
mov dx, word [ebp - 0x100]
mov byte [ebp - 0xf4], al
mov eax, dword [ebp - 0x9c]
mov byte [ebp - 0xf3], cl
push 8
lea ecx, [ebp - 0xe8]
mov byte [ebp - 0xf2], ah
mov byte [ebp - 0xf1], al
mov word [edi - 0x12], dx
mov edx, dword [ebp - 0xf4]
push ecx
xor eax, eax
lea esi, [edi - 0xe]
push esi
mov dword [edi], edx
mov word [edi - 0x10], ax
call dword [sym.imp.MSVCR100.dll_strncpy]
add esp, 0x24
mov eax, 8
call fcn.00403be0
mov esi, dword [ebp - 0x104]
inc ebx
add edi, 0x1c
cmp ebx, dword [ebp + 8]
jl 0x405127
mov edi, dword [ebp - 0x108]
mov eax, dword [0x4311fc]
imul eax, dword [ebp + 8]
xor edx, edx
mov ecx, 0x50
div ecx
test edx, edx
je 0x405234
mov eax, ecx
sub eax, edx
jmp 0x405236
xor eax, eax
cdq
push 1
push edx
push eax
push esi
call dword [sym.imp.MSVCR100.dll__fseeki64]
push esi
push 1
lea edx, [ebp - 0x60]
push 0x50
push edx
call dword [sym.imp.MSVCR100.dll_fread]
push 0x17
lea eax, [ebp - 0x60]
push str.HEADER_RECORDOBS
push eax
call dword [sym.imp.MSVCR100.dll_strncmp]
add esp, 0x2c
test eax, eax
je 0x405290
push str.SAS_transport
push edi
push str.The_level__d_file_does_not_seem_to_be_a__s_file__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425fc4
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.MSVCR100.dll__ftelli64]
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [edi*8 + 0x42f9d0], eax
mov dword [edi*8 + 0x42f9d4], edx
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00425fc4
mov esp, ebp
pop ebp
ret
Function at 0x405480
Capabilities:
Delete file
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
lea edx, [ebp - 0x108]
mov eax, edi
sub edx, edi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4054a0
push ebx
lea eax, [ebp - 0x108]
push str..ssp
push eax
call dword [sym.imp.MSVCR100.dll_strstr]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4054d5
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425fc4
mov esp, ebp
pop ebp
ret
mov ecx, dword [str..ssd]
push esi
mov dword [ebx], ecx
mov dl, byte [0x427bac]
lea eax, [ebp - 0x108]
push 0
push eax
mov byte [ebx + 4], dl
call dword [sym.imp.MSVCR100.dll__access]
add esp, 8
test eax, eax
jne 0x4055c8
mov esi, dword [sym.imp.MSVCR100.dll_printf]
lea ecx, [ebp - 0x108]
push ecx
push edi
push str.I_dont_see__s__but_I_do_see__s._n
call esi
push str.Would_you_like_me_to_convert_it_to_a_transport_file_
call fcn.00403ef0
add esp, 0x10
test eax, eax
je 0x4055c8
push str.Give_me_a_moment_to_run_the_SAS_job..._n
call esi
push 0x427c34
push str.xyzzy.sas
call dword [sym.imp.MSVCR100.dll_fopen]
push edi
mov esi, eax
push str.libname_tranfile_sasv5xpt_.__s__nlibname_fileout__.___n
push esi
call dword [sym.imp.MSVCR100.dll_fprintf]
lea edx, [ebp - 0x108]
push edx
push str.proc_copy_infileout_outtranfile__nselect__s__nrun__n
push esi
mov byte [ebx], 0
call dword [sym.imp.MSVCR100.dll_fprintf]
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
push str.sas_xyzzy.sas
call dword [sym.imp.MSVCR100.dll_system]
mov esi, dword [sym.imp.MSVCR100.dll_remove]
push str.xyzzy.sas
call esi
add esp, 0x30
test edi, edi
je 0x4055c8
push 0
push edi
call dword [sym.imp.MSVCR100.dll__access]
add esp, 8
test eax, eax
jne 0x4055c8
push edi
push str.Please_keep__s_around_if_you_want_to_do_a_non_linear_run._n
call dword [sym.imp.MSVCR100.dll_printf]
push str.xyzzy.log
call esi
add esp, 0xc
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425fc4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00425fc4
mov esp, ebp
pop ebp
ret
Function at 0x4055e0
Capabilities:
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov ecx, dword [0x42fb48]
push esi
lea eax, [ebx*8]
sub eax, ebx
add eax, eax
push edi
add eax, eax
add eax, eax
mov edi, dword [eax + ecx]
push edi
lea esi, [ebx + ebx*4]
add esi, esi
push 1
add esi, esi
lea edx, [ebp - 0x44]
push 4
add esi, esi
push edx
mov dword [ebp - 0x4c], eax
mov dword [esi + 0x42fbd0], 8
call dword [sym.imp.MSVCR100.dll_fread]
push 4
lea eax, [ebp - 0x44]
push str._FL2
push eax
call dword [sym.imp.MSVCR100.dll_strncmp]
add esp, 0x1c
test eax, eax
je 0x40568c
mov esi, dword [sym.imp.MSVCR100.dll_printf]
push str.SPSS
lea ecx, [ebx + 1]
push ecx
push str.The_level__d_file_does_not_seem_to_be_a__s_file__n
call esi
mov ebx, dword [ebx*4 + 0x430208]
push ebx
push str.__s_is_an_empty_file_n
call esi
add esp, 0x14
call fcn.00404240
inc dword [0x42fba4]
je 0x405684
call fcn.00403eb0
push 1
call dword [sym.imp.MSVCR100.dll_exit]
push 1
push 0
push 0x3c
push edi
call dword [sym.imp.MSVCR100.dll__fseeki64]
push edi
push 1
lea edx, [ebp - 0x48]
push 4
push edx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x20
cmp dword [ebp - 0x48], 3
ja 0x405758
mov ebx, dword [sym.imp.MSVCR100.dll_fread]
push edi
push 1
lea eax, [ebp - 0x48]
push 4
push eax
call ebx
mov ecx, dword [ebp - 0x48]
push edi
push 1
lea edx, [ebp - 0x48]
push 4
push edx
mov dword [esi + 0x42fbc0], ecx
call ebx
mov eax, dword [ebp - 0x48]
push edi
push 1
lea ecx, [ebp - 0x48]
push 4
push ecx
mov dword [esi + 0x42fbc4], eax
call ebx
mov edx, dword [ebp - 0x48]
push edi
push 1
lea eax, [ebp - 0x48]
push 4
push eax
mov dword [esi + 0x42fbc8], edx
call ebx
mov ecx, dword [ebp - 0x48]
add esp, 0x40
push edi
push 1
lea edx, [ebp - 0x58]
push 8
push edx
mov dword [esi + 0x42fbcc], ecx
call ebx
fld qword [ebp - 0x58]
push 1
fstp qword [esi + 0x42fbd8]
push 0
push 0x54
push edi
call dword [sym.imp.MSVCR100.dll__fseeki64]
mov eax, dword [esi + 0x42fbc0]
mov ecx, dword [0x42fb48]
mov edx, dword [ebp - 0x4c]
add esp, 0x20
mov dword [edx + ecx + 4], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00425fc4
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.MSVCR100.dll_printf]
push str.SPSS
lea eax, [ebx + 1]
push eax
push str.The_level__d_file_does_not_seem_to_be_a__s_file__n
call esi
mov ebx, dword [ebx*4 + 0x430208]
push ebx
push str.__s_is_an_empty_file_n
call esi
add esp, 0x14
call fcn.00404240
inc dword [0x42fba4]
je 0x405792
call fcn.00403eb0
push 1
call dword [sym.imp.MSVCR100.dll_exit]
int3
Function at 0x407300
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, dword [0x430cb0]
inc esi
imul esi, esi, 0xd
push edi
test esi, esi
jne 0x407315
xor ebx, ebx
jmp 0x40735b
push esi
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x40734d
push str._Out_of_memory._Please_run_a_smaller_problem_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404240
inc dword [0x42fba4]
je 0x407345
call fcn.00403eb0
push 3
call dword [sym.imp.MSVCR100.dll_exit]
push esi
push 0
push edi
call sub.MSVCR100.dll_memset
add esp, 0xc
mov ebx, edi
mov esi, dword [0x430b90]
inc esi
imul esi, esi, 0xd
mov dword [0x430ca0], ebx
test esi, esi
jne 0x407373
xor eax, eax
jmp 0x4073b9
push esi
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4073ab
push str._Out_of_memory._Please_run_a_smaller_problem_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404240
inc dword [0x42fba4]
je 0x4073a3
call fcn.00403eb0
push 3
call dword [sym.imp.MSVCR100.dll_exit]
push esi
push 0
push edi
call sub.MSVCR100.dll_memset
add esp, 0xc
mov eax, edi
mov ecx, dword [0x4284a0]
mov dword [ebx], ecx
mov edx, dword [0x4284a4]
mov dword [ebx + 4], edx
mov ecx, dword [0x4284a8]
mov dword [ebx + 8], ecx
movzx edx, byte [0x4284ac]
mov byte [ebx + 0xc], dl
mov ecx, dword [str.INTRCPT2]
mov dword [eax], ecx
mov edx, dword [0x4284b4]
mov dword [eax + 4], edx
mov ecx, dword [0x4284b8]
mov dword [eax + 8], ecx
movzx edx, byte [0x4284bc]
pop edi
pop esi
mov dword [0x430c14], eax
mov byte [eax + 0xc], dl
pop ebx
ret
Function at 0x407b70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [0x430c04]
push ebx
mov ebx, dword [0x42fe00]
push esi
mov esi, dword [0x430cb0]
push edi
push ecx
push 1
mov edi, eax
mov eax, dword [0x42ff3c]
push 4
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.MSVCR100.dll_fread]
mov edx, dword [edi]
lea edi, [esi*8]
add esp, 0x10
mov dword [ebp - 4], edx
mov dword [ebp - 8], edi
test edi, edi
je 0x407bca
mov eax, dword [0x430c04]
push eax
push 1
push edi
push ebx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test esi, esi
jle 0x407be2
mov edi, dword [ebp + 8]
mov ecx, esi
and ecx, 0x1fffffff
add ecx, ecx
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
xor esi, esi
test eax, eax
jle 0x407c6c
mov ecx, dword [0x430ca8]
lea eax, [ecx*8]
test eax, eax
je 0x407c1a
mov ecx, dword [0x430c04]
push ecx
push 1
push eax
push ebx
call dword [sym.imp.MSVCR100.dll_fread]
mov ecx, dword [0x430ca8]
add esp, 0x10
xor eax, eax
test ecx, ecx
jle 0x407c39
fld qword [ebx + eax*8]
mov edx, dword [ebp - 0xc]
imul ecx, esi
add ecx, eax
inc eax
fstp qword [edx + ecx*8]
mov ecx, dword [0x430ca8]
cmp eax, ecx
jl 0x407c20
mov eax, dword [ebp - 4]
inc esi
cmp esi, eax
jl 0x407bf5
test eax, eax
jle 0x407c6c
mov esi, dword [ebp + 0xc]
mov ebx, eax
lea ebx, [ebx]
test edi, edi
je 0x407c67
mov eax, dword [0x430c04]
push eax
push 1
push edi
push esi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
add esi, edi
dec ebx
jne 0x407c50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b0e0
Capabilities:
Terminate process

Disassembly:
push edi
push 1
push 0
mov edi, str.Enter_0_to_stop_iterating__1_to_exit_now
call fcn.00403fc0
add esp, 8
sub eax, 0
pop edi
je 0x40b128
dec eax
jne 0x40b134
push 0x427955
push 0x428e48
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
call fcn.00404240
inc dword [0x42fba4]
je 0x40b120
call fcn.00403eb0
push 0
call dword [sym.imp.MSVCR100.dll_exit]
inc dword [0x42fe44]
inc dword [0x42fe48]
push 0x40b0c0
push 2
mov dword [0x42fe34], 0
call dword [sym.imp.MSVCR100.dll_signal]
add esp, 8
ret
Function at 0x41dbc0
Capabilities:
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov edx, dword [0x42fb48]
lea ecx, [eax*8]
sub ecx, eax
lea eax, [edx + ecx*8]
mov edx, dword [eax + 4]
mov ecx, dword [eax]
push esi
mov esi, dword [eax + 0x10]
push edi
mov edi, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], eax
test esi, esi
je 0x41dc08
push ecx
push 1
push esi
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x41dc1b
xor eax, eax
test esi, esi
je 0x41dc1b
mov edi, edi
cmp byte [eax + edi], 0x20
jne 0x41dc26
inc eax
cmp eax, esi
jb 0x41dc10
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
jle 0x41dd5c
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0xc], ecx
add edi, 2
movzx eax, word [edi + 2]
test ax, ax
je 0x41dd49
cmp ax, 0xffff
jne 0x41dd26
cmp dword [0x430a60], 0
je 0x41dcd6
movsx edx, word [edi]
push edx
mov edx, dword [edi + 0x12]
add edx, dword [ebp - 8]
lea esi, [ebp - 0x1c]
call fcn.004052c0
push ecx
fld qword [ebp - 0x1c]
fadd qword [0x42e1f0]
fstp qword [esp]
call sub.MSVCR100.dll_floor
fst qword [ebx]
add esp, 8
fcomp qword [0x430bb0]
fnstsw ax
test ah, 0x41
jne 0x41dd49
mov esi, dword [sym.imp.MSVCR100.dll_printf]
push str.Your_ID_variable_is_longer_than_12_characters._n
call esi
add esp, 4
push 0x427955
push 0x428e48
call esi
add esp, 8
call fcn.00404240
inc dword [0x42fba4]
je 0x41dcce
call fcn.00403eb0
push 0x64
call dword [sym.imp.MSVCR100.dll_exit]
mov eax, dword [0x430cf0]
mov dword [ebx], eax
mov ecx, dword [0x430cf4]
mov dword [ebx + 4], ecx
mov edx, dword [0x430cf8]
mov dword [ebx + 8], edx
mov al, byte [0x430cfc]
mov byte [ebx + 0xc], al
movzx eax, word [edi]
cmp ax, 0xc
cwde
jl 0x41dd06
mov eax, 0xc
mov ecx, dword [edi + 0x12]
add ecx, dword [ebp - 8]
push eax
push ecx
push ebx
call dword [sym.imp.MSVCR100.dll_strncpy]
add esp, 0xc
mov eax, 0xc
mov esi, ebx
call fcn.00403be0
jmp 0x41dd49
movsx edx, word [edi]
push edx
mov edx, dword [edi + 0x12]
add edx, dword [ebp - 8]
lea esi, [ebp - 0x1c]
call fcn.004052c0
mov eax, dword [ebp - 0xc]
fld qword [ebp - 0x1c]
add esp, 4
fstp qword [eax]
add eax, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
inc eax
add edi, 0x1c
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x14]
jl 0x41dc43
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41fda0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [0x42fb48]
lea ecx, [eax*8]
push esi
sub ecx, eax
lea eax, [edx + ecx*8]
push edi
mov edi, dword [eax + 8]
mov esi, dword [edi + 0x20]
mov eax, dword [eax + 0xc]
push edi
push ebx
push esi
mov dword [ebp - 4], eax
call fcn.00404a20
add esp, 0xc
mov dword [ebp - 8], eax
test eax, eax
jne 0x41fe8c
cmp dword [0x430a60], eax
je 0x41fe49
mov ecx, dword [edi + 0x18]
fld qword [ebx + ecx*8]
sub esp, 8
fadd qword [0x42e1f0]
fstp qword [esp]
call sub.MSVCR100.dll_floor
mov edx, dword [ebp + 0xc]
fst qword [edx]
add esp, 8
fcomp qword [0x430bb0]
fnstsw ax
test ah, 0x41
jne 0x41fe70
mov esi, dword [sym.imp.MSVCR100.dll_printf]
push str.ID_must_be_no_more_than_12_digits_long_n
call esi
add esp, 4
push 0x427955
push 0x428e48
call esi
add esp, 8
call fcn.00404240
inc dword [0x42fba4]
je 0x41fe41
call fcn.00403eb0
push 0x64
call dword [sym.imp.MSVCR100.dll_exit]
mov eax, dword [edi + 0x18]
imul eax, eax, 0xd
add eax, esi
mov esi, dword [ebp + 0xc]
mov edx, esi
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x41fe56
mov eax, 0xc
call fcn.00403be0
mov eax, esi
mov byte [eax + 0xc], 0
xor eax, eax
cmp dword [edi + 0x14], eax
jle 0x41fe8c
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + eax*4]
fld qword [ebx + edx*8]
mov ecx, dword [ebp + 8]
fstp qword [ecx + eax*8]
inc eax
cmp eax, dword [edi + 0x14]
jl 0x41fe77
mov eax, dword [ebp - 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x425fc4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x425fce
repz ret
jmp fcn.0042626c

Function at 0x4070d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
xor edi, edi
mov esi, dword [edx + 0x28]
movzx ecx, word [edx + 0x26]
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x407099
sub al, 0x20
ror edi, 0xd
add edi, eax
dec ecx
jne 0x407090
push edx
push edi
mov edx, dword [edx + 0x10]
mov eax, dword [edx + 0x3c]
add eax, edx
mov eax, dword [eax + 0x78]
test eax, eax
je 0x4070fe
add eax, edx
push eax
mov ebx, dword [eax + 0x20]
add ebx, edx
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x4070fd
xor edi, edi
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edx
xor eax, eax
lodsb al, byte [esi]
ror edi, 0xd
add edi, eax
invalid
cmp al, ah
jne 0x4070c9
add edi, dword [ebp - 8]
cmp edi, dword [ebp + 0x24]
jne 0x4070bd
pop eax
mov ebx, dword [eax + 0x24]
add ebx, edx
mov cx, word [ebx + ecx*2]
mov ebx, dword [eax + 0x1c]
add ebx, edx
mov eax, dword [ebx + ecx*4]
add eax, edx
mov dword [esp + 0x24], eax
pop ebx
pop ebx
popal
pop ecx
pop edx
push ecx
jmp eax
pop eax
pop edi
pop edx
mov edx, dword [edx]
jmp 0x407087

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x405a83
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405aa9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x405aa9
xor al, al
jmp 0x405ac9
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00414490
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x40cdf0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
mov eax, 0x41a510
call fcn.00413954
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], 8
mov dword [esi], 0x41b694
mov dword [ebp - 4], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], 1
mov dword [esi + 0x14], 0x41b748
push 4
mov ebx, 0x41b684
pop eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x3c]
push eax
mov byte [ebp - 4], 2
call fcn.004032a8
mov dword [esi + 0x3c], 0x41b7f8
push 4
mov dword [esi + 0x54], edi
pop eax
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], eax
mov dword [esi + 0x50], ebx
lea edi, [esi + 0x64]
push eax
mov ecx, edi
mov byte [ebp - 4], al
call fcn.004032a8
mov dword [edi], 0x41b800
lea edi, [esi + 0x78]
mov byte [ebp - 4], 5
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b99b
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 6
call fcn.0040c3f8
lea edi, [esi + 0xa0]
mov byte [ebp - 4], 7
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b99b
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 8
call fcn.0040c3f8
lea edi, [esi + 0xc8]
mov byte [ebp - 4], 9
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b99b
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 0xa
call fcn.0040c3f8
mov byte [ebp - 4], 0xb
lea edi, [esi + 0xf0]
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b99b
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 0xc
call fcn.0040c3f8
lea ecx, [esi + 0x118]
mov byte [ebp - 4], 0xd
call fcn.0040c3f8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x413220
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call fcn.004148be
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x413248
xor eax, eax
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x413257
mov eax, 1
ret 4

Function at 0x40a1e0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0x24
push edi
call 0xffbb4a0b
mov esi, dword [ebp + 8]
sub cl, byte [ebp + 0xc]
mov dword [esi], eax
mov dword [eax], edi
invalid
Function at 0x40d5c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d696
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404ba0
lea eax, [ebp - 4]
call fcn.0040501c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404fcc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d680
mov eax, ebx
call fcn.00402d0c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d679
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404fcc
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d663
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d6a8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d663
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d680
mov eax, dword [ebp - 0x10]
call fcn.00402d28
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d69d
lea eax, [ebp - 4]
call fcn.00404b08
ret

Function at 0x4257cc
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00425508
dec esi
jne 0x4257ee
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x426960
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x513308
cmp dword [edi], 0
jne 0x4269dc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x513304]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x50cc1c
mov ecx, 2
call fcn.00402f74
mov edx, 0x426938
lea eax, [esi + 5]
call fcn.00426958
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00426958
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4269b1
mov dword [0x513304], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8