joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40110b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x410004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x401158
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push 0x3ff
push 0x400
push eax
call fcn.00401485
lea eax, [ebp - 0x404]
push eax
call fcn.00401485
add esp, 0x18
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401b66
leave
ret

Function at 0x401485
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x401494
pop dword [ebp - 0x18]
mov eax, 0x8761f0ff
add eax, 0x78de2395
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x69c584b3
sub dword [ebp - 0x28], 0x1b733f68
mov dword [ebp - 0x24], 0xb49c7d99
add dword [ebp - 0x24], 0x7d96ceac
mov dword [ebp - 0x20], 0x1c9d8680
add dword [ebp - 0x20], 0x2faebdae
mov dword [ebp - 0x1c], 0xc9528894
add dword [ebp - 0x1c], 0x36ad776c
lea eax, [ebp - 0x28]
push eax
mov eax, 0x27216d1c
add eax, 0xd91f6330
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x7c7679e2
add dword [ebp - 0x28], 0xf7fbef74
mov dword [ebp - 0x24], 0x401f0654
add dword [ebp - 0x24], 0x14d5b21
mov dword [ebp - 0x20], 0x5e7a1062
sub dword [ebp - 0x20], 0xfb0aa3f6
mov dword [ebp - 0x1c], 0xc37b143e
sub dword [ebp - 0x1c], 0xc37b143e
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x3ebda50a
add eax, 0xc1832b3e
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x373b1
push 0
call eax
mov ecx, 0x3e81
mov ebx, eax
mov esi, 0x41b000
add esi, dword [ebp - 0x18]
mov edx, 0x498fdff7
add edx, 0xd8328f57
mov edi, dword [esi]
add dword [ebp - 0x14], eax
sub edi, edx
mov dword [ebp - 8], 0x812aea4a
mov dword [ebx], edi
xor dword [ebp - 0x10], 0x428b7118
add ebx, 0xdc90100e
add ebx, 0x236feff6
add esi, 0xb033aff6
add esi, 0x4fcc500e
loop 0x4015aa
add eax, 0x3a5eee61
sub eax, 0x3a5e018a
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x7aea447c
add ecx, 0x8555bb84
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ed0
nop
mov ecx, 0x39c46e85
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x583c48b7
nop
nop
nop
nop
test eax, eax
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x44f010
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x43d015
lea edi, [esi - 0x3c015]
push edi
jmp 0x44f02a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x44f031
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44f020
mov eax, 1
add ebx, ebx
jne 0x44f043
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x44f054
jne 0x44f073
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44f073
dec eax
add ebx, ebx
jne 0x44f060
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x44f038
add ebx, ebx
jne 0x44f06f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x44f0c5
xor ecx, ecx
sub eax, 3
jb 0x44f08b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x44f0fa
sar eax, 1
mov ebp, eax
jmp 0x44f096
add ebx, ebx
jne 0x44f096
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44f064
inc ecx
add ebx, ebx
jne 0x44f0a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44f064
add ebx, ebx
jne 0x44f0b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x44f0a6
jne 0x44f0c2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x44f0a6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x44f0e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x44f0d6
jmp 0x44f026
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x44f0e4
add edi, ecx
jmp 0x44f026
pop esi
mov edi, esi
mov ecx, 0x1353
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x44f102
cmp byte [edi], 0xa
jne 0x44f102
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 0x44f107
lea edi, [esi + 0x4d000]
mov eax, dword [edi]
or eax, eax
je 0x44f176
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x557e4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x55834]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x44f134
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x55838]
or eax, eax
je 0x44f170
mov dword [ebx], eax
add ebx, 4
jmp 0x44f151
call dword [esi + 0x55848]
mov ebp, dword [esi + 0x5583c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x44f1aa
sub esp, 0xffffff80
jmp 0x401240
Function at 0x401def
Capabilities:
Delete file
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0
push 0
call dword [sym.imp.MSVCR80.dll__tempnam]
mov esi, dword [sym.imp.MSVCR80.dll___iob_func]
mov ebp, eax
mov dword [esp + 0x1c], ebp
call esi
mov edi, dword [sym.imp.MSVCR80.dll_freopen]
add eax, 0x40
push eax
mov ebx, 0x4078c0
push ebx
push ebp
call edi
call esi
add eax, 0x20
push eax
push ebx
push ebp
call edi
add esp, 0x20
mov ebx, 0x40c920
call fcn.0040632d
mov edi, eax
test edi, edi
jne 0x401e50
push str.Cant_load_Python_for_pre_install_script
call fcn.00401613
or eax, 0xffffffff
jmp 0x401f45
push dword [esp + 0x20]
call fcn.0040632d
pop ecx
push edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
call esi
mov edi, dword [sym.imp.MSVCR80.dll_fflush]
add eax, 0x40
push eax
call edi
call esi
mov ebp, dword [sym.imp.MSVCR80.dll_fclose]
add eax, 0x40
push eax
call ebp
call esi
add eax, 0x20
push eax
call edi
call esi
add eax, 0x20
push eax
call ebp
add esp, 0x10
cmp dword [esp + 0x18], 0
je 0x401f37
push str.Running_the_pre_installation_script_failed_r_n
call sub.MSVCR80.dll_strlen
mov dword [esp], 0x407860
push dword [esp + 0x18]
mov edi, eax
call dword [sym.imp.MSVCR80.dll_fopen]
mov esi, dword [sym.imp.MSVCR80.dll_fseek]
push 2
mov ebx, eax
push 0
push ebx
call esi
push ebx
call dword [sym.imp.MSVCR80.dll_ftell]
push 0
push 0
push ebx
mov dword [esp + 0x34], eax
call esi
mov eax, dword [esp + 0x34]
lea eax, [eax + edi + 1]
push eax
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
add esp, 0x28
test esi, esi
je 0x401f2c
push str.Running_the_pre_installation_script_failed_r_n
push esi
call sub.MSVCR80.dll_strcpy
push ebx
push dword [esp + 0x1c]
lea eax, [esi + edi]
push 1
push eax
call dword [sym.imp.MSVCR80.dll_fread]
add eax, esi
push ebx
mov byte [eax + edi], 0
call ebp
push esi
call fcn.00401613
push esi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 0x24
jmp 0x401f37
push str.Out_of_memory_
call fcn.00401613
pop ecx
push dword [esp + 0x14]
call dword [sym.imp.MSVCR80.dll_remove]
mov eax, dword [esp + 0x1c]
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x40220d
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x40c17c]
xor eax, ebp
mov dword [ebp + 0x90], eax
mov eax, dword [ebp + 0x9c]
mov dword [ebp - 0x78], ecx
lea ecx, [edx + eax - 0x16]
sub eax, dword [ecx + 0x10]
push esi
sub eax, dword [ecx + 0xc]
push edi
mov edi, dword [ebp + 0xa0]
sub eax, 0x22
lea esi, [edx + eax]
xor edx, edx
mov dword [edi], edx
mov dword [ebx], edx
cmp dword [ecx], 0x6054b50
mov dword [ebp - 0x80], edi
jne 0x40234d
cmp dword [esi], 0x1234567b
je 0x402277
push edx
mov edi, str.Invalid_cfgdata_magic_number__see_bdist_wininst.py_
call fcn.0040632d
pop ecx
jmp 0x40234f
cmp eax, edx
jl 0x40234d
mov ecx, dword [esi + 8]
cmp ecx, edx
je 0x402293
mov edx, esi
sub edx, dword [esi + 4]
sub edx, ecx
mov dword [0x40ca30], edx
sub eax, dword [esi + 4]
mov ecx, dword [ebp - 0x78]
sub eax, dword [esi + 8]
mov edi, esi
mov dword [ecx], eax
sub edi, dword [esi + 4]
push 0x104
call dword [sym.imp.MSVCR80.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp - 0x7c], eax
je 0x40234d
lea eax, [ebp - 0x74]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x40233b
push dword [ebp - 0x7c]
lea eax, [ebp - 0x74]
push 0
push 0x407940
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
test eax, eax
je 0x40233b
xor eax, eax
push eax
push eax
push eax
push dword [esi + 4]
push eax
push dword [ebp - 0x7c]
push 2
call fcn.0040632d
add esp, 0x1c
test eax, eax
mov dword [ebp - 0x78], eax
je 0x40234d
push dword [esi + 4]
push edi
push eax
call dword [sym.imp.MSVCR80.dll_strncpy]
push dword [ebp - 0x78]
call sub.MSVCR80.dll_strlen
lea edi, [edi + eax + 1]
push edi
call dword [sym.imp.MSVCR80.dll__strdup]
mov ecx, dword [ebp - 0x80]
add esp, 0x14
push dword [ebp - 0x78]
mov dword [ecx], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebx], eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
xor eax, eax
inc eax
jmp 0x40234f
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
mov edi, str.Could_not_create_temporary_file
call fcn.0040632d
pop ecx
xor eax, eax
mov ecx, dword [ebp + 0x90]
pop edi
xor ecx, ebp
pop esi
call fcn.004065b0
add ebp, 0x94
leave
ret
Function at 0x4036a1
Capabilities:
Delete file
Read file on windows

Disassembly:
mov eax, 0x1018
call fcn.00406600
mov eax, dword [0x40c17c]
xor eax, esp
mov dword [esp + 0x1014], eax
mov eax, dword [esp + 0x101c]
push esi
mov esi, dword [sym.imp.MSVCR80.dll_strchr]
push edi
push 0x5b
push eax
call esi
xor edi, edi
cmp eax, edi
pop ecx
pop ecx
jne 0x4036dc
xor eax, eax
jmp 0x40385e
inc eax
push 0x5d
push eax
mov dword [esp + 0x14], eax
call esi
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x4036d5
mov byte [esi], 0
inc esi
push esi
push 0x40c1a0
mov dword [esp + 0x10], esi
call sub.MSVCR80.dll_strcmp
test eax, eax
pop ecx
pop ecx
je 0x40385b
push ebx
push ebp
push edi
push edi
mov dword [esp + 0x24], str._remove
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], esi
call dword [sym.imp.MSVCR80.dll__tempnam]
mov esi, dword [sym.imp.MSVCR80.dll___iob_func]
mov ebx, eax
call esi
mov ebp, dword [sym.imp.MSVCR80.dll_freopen]
add eax, 0x40
push eax
mov edi, 0x4078c0
push edi
push ebx
call ebp
add esp, 0x14
test eax, eax
jne 0x40375d
push eax
push eax
push str.freopen_stderr
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
call esi
add eax, 0x20
push eax
push edi
push ebx
call ebp
add esp, 0xc
test eax, eax
jne 0x403782
push eax
push eax
push str.freopen_stdout
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [esp + 0x14]
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4037c8
lea eax, [esp + 0x18]
push eax
push 2
push dword [esp + 0x18]
mov ecx, edi
call fcn.0040632d
add esp, 0xc
cmp eax, 0x80000000
jne 0x4037c1
push str._Could_not_load_Python_
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
pop ecx
pop ecx
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
call esi
mov ebp, dword [sym.imp.MSVCR80.dll_fflush]
add eax, 0x40
push eax
call ebp
call esi
mov edi, dword [sym.imp.MSVCR80.dll_fclose]
add eax, 0x40
push eax
call edi
call esi
add eax, 0x20
push eax
call ebp
call esi
add eax, 0x20
push eax
call edi
push 0x407860
push ebx
call dword [sym.imp.MSVCR80.dll_fopen]
mov esi, eax
push esi
push 0x1000
lea eax, [esp + 0x44]
push 1
push eax
call dword [sym.imp.MSVCR80.dll_fread]
push esi
mov ebp, eax
call edi
push ebx
call dword [sym.imp.MSVCR80.dll_remove]
add esp, 0x30
mov byte [esp + ebp + 0x24], 0
cmp byte [esp + 0x24], 0
pop ebp
pop ebx
je 0x40384b
push 0
push str.uninstall_script
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [esp + 8]
push 0x40c1a0
call sub.MSVCR80.dll_strcpy
pop ecx
pop ecx
xor eax, eax
inc eax
mov ecx, dword [esp + 0x101c]
pop edi
pop esi
xor ecx, esp
call fcn.004065b0
add esp, 0x1018
ret
Function at 0x404257
Capabilities:
Delete file
Read .ini file

Disassembly:
mov eax, 0x1004
call fcn.00406600
mov eax, dword [0x40c17c]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push ebp
push esi
push edi
push dword [0x40dbec]
mov edi, dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
mov ebp, 0x1000
push ebp
lea eax, [esp + 0x18]
push eax
mov ebx, 0x4074e8
push ebx
push str.title
mov esi, 0x4083d8
push esi
call edi
push 0x50
pop ecx
lea eax, [esp + 0x10]
mov edx, 0x40c620
call fcn.0040632d
push dword [0x40dbec]
lea eax, [esp + 0x14]
push ebp
push eax
push ebx
push str.info
push esi
call edi
mov ecx, ebp
lea eax, [esp + 0x10]
mov edx, 0x40ca40
call fcn.0040632d
push dword [0x40dbec]
push 0x50
push 0x40da80
push ebx
push str.build_info
push esi
call edi
push dword [0x40dbec]
mov ebp, dword [sym.imp.kernel32.dll_GetPrivateProfileIntA]
push 1
push str.target_compile
push esi
call ebp
push dword [0x40dbec]
mov dword [0x40c674], eax
push 1
push str.target_optimize
push esi
call ebp
push dword [0x40dbec]
mov dword [0x40c670], eax
push 0xa
push 0x40da50
push ebx
push str.target_version
push esi
call edi
push dword [0x40dbec]
push 0x50
push 0x40c7a0
push ebx
push str.name
push str.metadata
call edi
push dword [0x40dbec]
push 0x104
push 0x40c680
push ebx
push str.install_script
push esi
call edi
push 0x40c620
call fcn.00402490
push eax
mov dword [0x40da40], eax
call fcn.0040632d
pop ecx
pop ecx
push dword [0x40dad4]
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov eax, dword [0x40dbec]
test eax, eax
pop edi
pop esi
pop ebp
pop ebx
je 0x404399
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov eax, dword [0x40dbf0]
test eax, eax
je 0x4043a9
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x1000]
xor ecx, esp
xor eax, eax
call fcn.004065b0
add esp, 0x1004
ret
Function at 0x40632d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x40633c
pop dword [ebp - 0x24]
mov eax, 0xd6b55e2e
sub eax, 0xd674faf2
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x41e6af4d
sub dword [ebp - 0x34], 0xf3946a02
mov dword [ebp - 0x30], 0x39fa1c1f
add dword [ebp - 0x30], 0xf8393026
mov dword [ebp - 0x2c], 0x78a885f2
add dword [ebp - 0x2c], 0xd3a3be3c
mov dword [ebp - 0x28], 0xbce543db
add dword [ebp - 0x28], 0x431abc25
lea eax, [ebp - 0x34]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x1920b3d2
sub dword [ebp - 0x34], 0xa4ae4a7c
mov dword [ebp - 0x30], 0x2100d9e0
sub dword [ebp - 0x30], 0xdf94786b
mov dword [ebp - 0x2c], 0x6956e6a0
add dword [ebp - 0x2c], 0xfa1885cc
mov dword [ebp - 0x28], 0x423d2274
add dword [ebp - 0x28], 0xbdc2dd8c
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0xffe4c8e9
sub eax, 0xffa457e9
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x357d1
push 0
call eax
mov ecx, 0xf2d9483b
sub ecx, 0xf2d904c0
xor esi, esi
add esi, eax
mov edx, 0x410000
add edx, dword [ebp - 0x24]
mov edi, 0xcfddcad0
sub edi, 0x7efea7e7
add dword [ebp - 4], esi
mov ebx, dword [edx]
sub dword [ebp - 0x1c], 0x5081498d
xor ebx, edi
sub dword [ebp - 4], 0x15c4b409
mov dword [esi], ebx
add dword [ebp - 0x18], 0x156c1b45
add esi, 0x374ec3f1
add esi, 0xc8b13c13
add edx, 0x56d5df9d
add edx, 0xa92a2067
loop 0x406455
add eax, 0x809fb769
sub eax, 0x809eb6aa
mov ebx, eax
add eax, 5
mov ecx, 0xbdb1d559
add ecx, 0x428e2aa7
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x406937
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x40b138
call fcn.00406c3c
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x40dbfc
push 0
push esi
push edi
call dword [sym.imp.kernel32.dll_InterlockedCompareExchange]
test eax, eax
je 0x4066d6
cmp eax, esi
jne 0x4066c9
xor esi, esi
inc esi
mov ebx, esi
jmp 0x4066d9
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x4066b0
xor esi, esi
inc esi
mov eax, dword [0x40dbf8]
cmp eax, esi
jne 0x4066ec
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x40671b
mov eax, dword [0x40dbf8]
test eax, eax
jne 0x406715
mov dword [0x40dbf8], esi
push 0x4072cc
push 0x4072c4
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40671b
jmp 0x406843
mov dword [0x40c2cc], esi
mov eax, dword [0x40dbf8]
cmp eax, esi
jne 0x40673f
push 0x4072c0
push 0x4072b8
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x40dbf8], 2
test ebx, ebx
jne 0x40674b
push ebx
push edi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
cmp dword [0x40dc08], 0
je 0x40676f
push 0x40dc08
call fcn.00406bc2
pop ecx
test eax, eax
je 0x40676f
push 0
push 2
push 0
call dword [0x40dc08]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x4067cb
test al, al
je 0x406789
cmp dword [ebp - 0x1c], 0
jne 0x4067cb
mov al, byte [esi]
test al, al
je 0x406799
cmp al, 0x20
ja 0x406799
inc esi
mov dword [ebp - 0x20], esi
jmp 0x406789
test byte [ebp - 0x3c], 1
je 0x4067a5
movzx eax, word [ebp - 0x38]
jmp 0x4067a8
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call main
mov dword [0x40c2c8], eax
cmp dword [0x40c2bc], 0
jne 0x40681f
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x4067da
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x4067ed
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x406776
cmp dword [0x40c2cc], 0
jne 0x40682e
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x40c2c8]
jmp 0x40684f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00406c81
ret
call fcn.0040632d
jmp 0x406676
Function at 0x4063f6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ebx, dword [ebp + 8]
cmp ebx, 0
je 0x40643b
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov edx, dword [eax + 0x78]
add edx, ebx
mov ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x20]
push ecx
push ecx
push eax
xor eax, eax
or ecx, 0xffffffff
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
repne scasb al, byte es:[edi]
not ecx
pop eax
push ecx
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
mov esi, dword [eax + ebx]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
pop ecx
je 0x406441
add eax, 4
pop esi
dec esi
push esi
jne 0x406423
xor eax, eax
leave
ret 8
pop esi
pop ecx
sub ecx, esi
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + ebx]
mov ecx, dword [edx + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + ebx]
add eax, ebx
leave
ret 8
Function at 0x407649
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ebx, dword [ebp + 8]
cmp ebx, 0
je 0x40768e
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov edx, dword [eax + 0x78]
add edx, ebx
mov ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x20]
push ecx
push ecx
push eax
xor eax, eax
or ecx, 0xffffffff
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
repne scasb al, byte es:[edi]
not ecx
pop eax
push ecx
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
mov esi, dword [eax + ebx]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
pop ecx
je 0x407694
add eax, 4
pop esi
dec esi
push esi
jne 0x407676
xor eax, eax
leave
ret 8
pop esi
pop ecx
sub ecx, esi
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + ebx]
mov ecx, dword [edx + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + ebx]
add eax, ebx
leave
ret 8
Function at 0x45c860
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x526e9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0051b378
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x45c8e2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00518ecf
mov eax, dword [eax]
push 0x14fbd54
push eax
call fcn.004f7744
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0051b603
test bl, bl
je 0x45c8e2
push 0x14fbd54
lea ecx, [esp + 0xc]
call fcn.0051b993
push 0x14fbd60
lea ecx, [esp + 0xc]
call fcn.0051b993
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x45c91e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0051b603
jmp 0x45c9e9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x45c9a2
lea edx, [esp + 0x7c]
push 0x14fbd5c
push edx
call fcn.004f7744
add esp, 8
test eax, eax
je 0x45c9a2
lea eax, [esp + 0x7c]
push 0x14fbd58
push eax
call fcn.004f7744
add esp, 8
test eax, eax
je 0x45c9a2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x45c932
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0051b603
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x45d1e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x45d242
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc