joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401dd8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c8
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 8]
lea eax, [ebp - 0x5c8]
push eax
call edi
mov ebx, dword [ebp + 0xc]
cmp byte [ebx], 0
je 0x401e1c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x5c8]
push 0x408a20
push eax
call esi
lea eax, [ebp - 0x5c8]
push ebx
push eax
call esi
cmp dword [ebp + 0x10], 0xffffffff
jne 0x401e36
lea eax, [ebp - 0x5c8]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x401f3d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, dword [ebp + 8]
cmp esi, dword [ebp + 8]
jbe 0x401e51
cmp byte [esi], 0x5c
je 0x401e51
dec esi
jmp 0x401e44
mov al, byte [esi]
cmp al, 0x5c
jne 0x401e6d
mov cl, byte [esi - 1]
cmp cl, 0x3a
je 0x401e6c
cmp cl, al
je 0x401e6c
cmp al, al
jne 0x401e6d
cmp cl, 0x2e
jne 0x401e6d
inc esi
push dword [ebp + 8]
mov bl, byte [esi]
and byte [esi], 0
lea eax, [ebp - 0x2e4]
push eax
call edi
cmp bl, 0x5c
mov byte [esi], bl
jne 0x401e86
inc esi
lea eax, [ebp - 0x2e4]
push eax
lea eax, [ebp - 0x2e4]
push eax
push esi
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x1f
jne 0x401ebf
push dword [ebp + 8]
push 0x2e
call fcn.0040108f
push eax
lea eax, [ebp - 0x2e4]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x10
jmp 0x401f23
cmp eax, 0x20
jbe 0x401f05
mov eax, dword [ebp + 0xc]
push 1
push 0
mov cl, byte [eax]
neg cl
sbb ecx, ecx
and ecx, eax
mov eax, dword [0x40897c]
and eax, 0x20000
push ecx
push dword [ebp + 8]
neg eax
sbb eax, eax
and eax, str.Install
push eax
push dword [0x40b780]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x401f00
mov dword [ecx], eax
cmp eax, 0x20
ja 0x401f3d
push dword [ebp + 8]
push eax
push 0xe
call fcn.0040108f
push eax
lea eax, [ebp - 0x2e4]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
lea eax, [ebp - 0x2e4]
push str.WinZip_Self_Extractor
push eax
push dword [0x40b780]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f42
Capabilities:
Log keystrokes via polling
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x401f7e
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x105
push eax
lea eax, [ebp - 0x10c]
push eax
push str.winzip_shellopencommand
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x401f9d
push 0
push str.WinZip_Self_Extractor
push 0x1b
call fcn.0040108f
push eax
push dword [0x40b780]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
leave
ret
mov cl, byte [ebp - 0x10c]
lea eax, [ebp - 0x10c]
test cl, cl
je 0x401fb8
cmp cl, 0x20
je 0x401fb8
mov cl, byte [eax + 1]
inc eax
jmp 0x401fa9
push 0x40ad50
inc eax
push str.__s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x40897c]
mov ecx, 0x1000
mov edx, eax
add esp, 0xc
and edx, ecx
cmp edx, ecx
jne 0x40200e
mov ecx, 0x8000
and eax, ecx
cmp eax, ecx
je 0x40200e
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x10c]
sub ecx, 3
add eax, ecx
dec eax
mov byte [eax], 0x7a
inc eax
mov byte [eax], 0x69
mov byte [eax + 1], 0x70
push 0xffffffffffffffff
lea eax, [ebp - 0x10c]
push 0x40b05c
push eax
call fcn.00401dd8
add esp, 0xc
neg eax
sbb eax, eax
neg eax
leave
ret

Function at 0x402363
Capabilities:
Query environment variable

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
ret
Function at 0x4038f8
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov bl, 0x22
cmp byte [eax], bl
je 0x403908
add bl, 0xfe
mov cl, byte [eax + 1]
inc eax
xor edx, edx
cmp cl, dl
je 0x40391c
cmp cl, bl
je 0x40391c
mov cl, byte [eax + 1]
inc eax
jmp 0x40390e
cmp byte [eax], dl
je 0x403921
inc eax
push edx
push eax
push edx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x403a99
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x40b5ee]
test eax, eax
ja 0x403aac
and dword [0x40b5cc], 0
xor eax, eax
ret
push edi
push esi
mov esi, 0x800
cmp eax, esi
ja 0x403ab9
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll__lread]
push esi
push dword [0x40b5c8]
push dword [0x40afe0]
call edi
cmp dword [0x40aff0], 0
mov ecx, eax
mov dword [0x40b5cc], ecx
je 0x403b28
cmp ecx, 0xffffffff
je 0x403b28
cmp ecx, esi
je 0x403b39
test ecx, ecx
jl 0x403b28
mov ax, word [0x408918]
push dword [0x40aff4]
inc ax
push eax
call fcn.0040132a
mov ecx, dword [0x40b5cc]
test ecx, ecx
jne 0x403b21
push esi
push dword [0x40b5c8]
push dword [0x40afe0]
call edi
mov ecx, eax
mov dword [0x40b5cc], ecx
cmp ecx, 0xffffffff
je 0x403b28
mov esi, ecx
cmp ecx, esi
je 0x403b39
push 2
call fcn.00401c9a
mov ecx, dword [0x40b5cc]
sub dword [0x40b5ee], ecx
mov esi, dword [0x40b5c8]
cmp dword [0x40afe4], 0
mov dword [0x40b5fc], esi
je 0x403b7b
mov eax, ecx
mov edx, eax
dec eax
test edx, edx
je 0x403b7b
lea edi, [eax + 1]
call fcn.004052f0
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.00405306
inc esi
dec edi
pop ecx
jne 0x403b60
mov ecx, dword [0x40b5cc]
mov eax, ecx
dec ecx
pop esi
mov dword [0x40b5cc], ecx
pop edi
ret

Function at 0x405306
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x40b068]
xor eax, ecx
mov edx, 0xff
and eax, edx
push esi
shr ecx, 8
mov eax, dword [eax*4 + 0x40b0a0]
xor eax, ecx
mov ecx, dword [0x40b070]
mov dword [0x40b068], eax
and eax, edx
add eax, dword [0x40b06c]
mov esi, ecx
and esi, edx
imul eax, eax, 0x8088405
inc eax
mov dword [0x40b06c], eax
shr eax, 0x18
xor esi, eax
shr ecx, 8
mov eax, dword [esi*4 + 0x40b0a0]
pop esi
xor eax, ecx
mov dword [0x40b070], eax
ret

Function at 0x4053ed
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push dword [0x40afec]
call fcn.00405361
pop ecx
lea eax, [ebp - 0xc]
push 0xc
push dword [ebp + 8]
push eax
call fcn.00401000
add esp, 0xc
xor edi, edi
lea esi, [ebp + edi - 0xc]
call fcn.004052f0
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.00405306
inc edi
pop ecx
cmp edi, 0xc
jl 0x405414
cmp dword [0x40afe8], 0
movzx ax, byte [ebp - 1]
je 0x405447
xor ecx, ecx
mov cl, byte [0x40b5e7]
jmp 0x405450
mov ecx, dword [0x40b5ea]
shr ecx, 0x18
cmp ax, cx
je 0x40545a
or eax, 0xffffffff
jmp 0x40545c
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x401000
Capabilities:
Create process on windows
Terminate process

Disassembly:
sub esp, 0x858
push ebx
push ebp
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov ecx, 0x11
lea edi, [esp + 0x24]
push 0xfffffffffffffff6
rep stosd dword es:[edi], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0x44
mov dword [esp + 0x54], 0x100
call esi
push 0xfffffffffffffff5
mov dword [esp + 0x60], eax
call esi
push 0xfffffffffffffff4
mov dword [esp + 0x64], eax
call esi
mov ebp, dword [esp + 0x86c]
mov dword [esp + 0x64], eax
cmp ebp, 1
jne 0x401086
push str._usage:_kspawn__command_line__n
push 0x4060a0
call fcn.004011c2
add esp, 8
push 5
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ebx, 1
xor esi, esi
cmp ebp, ebx
jle 0x4010ce
mov ecx, dword [esp + 0x870]
lea edi, [ecx + 4]
cmp ebx, 3
jge 0x4010af
mov edx, dword [edi]
lea eax, [esp + esi + 0x68]
push edx
push str.__s_
push eax
jmp 0x4010bc
mov ecx, dword [edi]
lea edx, [esp + esi + 0x68]
push ecx
push 0x406030
push edx
call fcn.00401170
add esp, 0xc
add esi, eax
inc ebx
add edi, 4
cmp ebx, ebp
jl 0x40109b
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push ecx
push 0
push 0
push 0
push 1
push 0
lea edx, [esp + 0x84]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401100
push 4
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [esp + 0x10], 0
mov ebx, 0x103
mov eax, dword [esp + 0x14]
push 0x1f4
push eax
call esi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push edx
call edi
test eax, eax
je 0x40113b
cmp dword [esp + 0x10], ebx
je 0x401119
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x402a51
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x406398
cmp edx, dword [eax]
je 0x402a73
add eax, 8
inc ecx
cmp eax, 0x406428
jl 0x402a64
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x406398]
jne 0x402ba1
mov eax, dword [0x4068fc]
cmp eax, 1
je 0x402b7b
test eax, eax
jne 0x402aa4
cmp dword [0x4062e4], 1
je 0x402b7b
cmp edx, 0xfc
je 0x402ba1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402adb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403a50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402e60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402b1e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402e60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x405404
push edi
call fcn.004042e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403a50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403a60
lea eax, [ebp - 0xa0]
push 0x4053e4
push eax
call fcn.00403a60
push dword [esi + 0x40639c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403a60
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00404255
add esp, 0x2c
pop edi
jmp 0x402ba1
lea eax, [ebp + 8]
lea esi, [esi + 0x40639c]
push 0
push eax
push dword [esi]
call fcn.00402e60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x42b2f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1d000]
push edi
or ebp, 0xffffffff
jmp 0x42b312
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42b319
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42b308
mov eax, 1
add ebx, ebx
jne 0x42b32b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42b320
jne 0x42b33c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42b320
xor ecx, ecx
sub eax, 3
jb 0x42b350
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42b3c2
mov ebp, eax
add ebx, ebx
jne 0x42b35b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42b368
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42b38c
inc ecx
add ebx, ebx
jne 0x42b378
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42b36d
jne 0x42b389
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42b36d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42b3ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42b39d
jmp 0x42b30e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42b3ac
add edi, ecx
jmp 0x42b30e
pop esi
mov edi, esi
mov ecx, 0x6a2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42b3ca
cmp byte [edi], 1
jne 0x42b3ca
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 0x42b3cf
lea edi, [esi + 0x29000]
mov eax, dword [edi]
or eax, eax
je 0x42b447
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2cc10]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2ccd8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42b3fc
mov ecx, edi
jns 0x42b42b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2ccdc]
or eax, eax
je 0x42b441
mov dword [ebx], eax
add ebx, 4
jmp 0x42b419
call dword [esi + 0x2ccec]
mov ebp, dword [esi + 0x2cce0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x42b47b
sub esp, 0xffffff80
jmp 0x40993d
Function at 0x401040
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x46f399
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x48e820]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
call fcn.0043adc8
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x401083
push 0x80004005
call fcn.0040fef0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x18], ebx
lea edi, [esi + 4]
call fcn.0043adc8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4010b2
push 0x80004005
call fcn.0040fef0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
mov ecx, esi
mov byte [esp + 0x18], 3
call fcn.004103e0
mov ecx, edi
call fcn.004103e0
mov ecx, esi
call fcn.004196b0
mov dword [esi + 0x28], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x401560
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x408
mov eax, dword [0x48e820]
xor eax, esp
mov dword [esp + 0x404], eax
push esi
mov dword [esp + 4], 0
call fcn.0043a4fb
movzx ecx, word [esp + 0x410]
mov eax, dword [eax + 8]
push str.MYDATA
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4015c4
push 0x47b3d4
mov ecx, edi
call fcn.00410560
mov eax, edi
pop esi
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.004540ed
add esp, 0x408
ret
call fcn.0043a4fb
mov eax, dword [eax + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4015a0
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
call fcn.0043a4fb
mov eax, dword [eax + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea edx, [esi - 1]
cmp edx, 0x3ff
ja 0x40161a
push esi
lea eax, [esp + 0x10]
push ebp
push eax
call fcn.00454500
add esp, 0xc
lea ecx, [esp + 0xc]
mov byte [esp + esi + 0xc], 0
push ecx
jmp 0x40161f
push 0x47b3d4
mov ecx, edi
call fcn.00410560
mov ecx, dword [esp + 0x40c]
pop ebp
pop esi
xor ecx, esp
mov eax, edi
call fcn.004540ed
add esp, 0x408
ret
Function at 0x401640
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x114
mov eax, dword [0x48e820]
xor eax, esp
mov dword [esp + 0x110], eax
lea eax, [esp]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x4016b3
lea ecx, [esp + 4]
push ecx
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x4016a8
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x401698
lea ecx, [esp + 8]
push ecx
mov ecx, 0x492e78
call fcn.00410440
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
mov eax, dword [esp]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edx, dword [0x492e78]
mov ecx, dword [edx - 0xc]
lea eax, [ecx - 1]
test eax, eax
jl 0x40174a
cmp eax, ecx
jg 0x40174a
cmp byte [edx + eax], 0x5c
je 0x4016e2
push 1
push 0x47a9d8
mov ecx, 0x492e78
call fcn.0040ecb0
push esi
push 5
push str.iPep_
mov ecx, 0x492e78
call fcn.0040ecb0
mov eax, dword [0x492e78]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push eax
call esi
push 0x492e78
mov ecx, 0x492e74
call fcn.004104e0
push 3
push 0x47a9e4
mov ecx, 0x492e74
call fcn.0040ecb0
mov ecx, dword [0x492e74]
push 0
push ecx
call esi
mov ecx, dword [esp + 0x114]
pop esi
xor ecx, esp
mov eax, 1
call fcn.004540ed
add esp, 0x114
ret
push 0x80070057
call fcn.0040fef0
int3
Function at 0x401760
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x46e8db
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x48e820]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebp
push esi
push edi
mov eax, dword [0x48e820]
xor eax, esp
push eax
lea eax, [esp + 0xe4]
mov dword fs:[0], eax
mov eax, dword [esp + 0xf4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xec], 1
call fcn.0043adc8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4017d2
push 0x80004005
call fcn.0040fef0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push 0x492e78
lea ecx, [esp + 0x14]
mov byte [esp + 0xf0], 2
call fcn.004104e0
push 0x11
push str.Configdooland.ini
lea ecx, [esp + 0x18]
call fcn.0040ecb0
mov ecx, dword [str.DOC_]
mov dl, byte [0x47aa00]
mov ebp, dword [esp + 0xf8]
mov dword [esp + 0x18], ecx
mov byte [esp + 0x1c], dl
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, edx
or eax, ecx
jge 0x40184b
push edx
lea ecx, [esp + 0xfc]
call fcn.00410120
mov ebp, dword [esp + 0xf8]
mov eax, ebp
mov edx, ebp
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401850
lea edi, [esp + 0x18]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x401862
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
cmp dword [esi - 4], 1
jle 0x401897
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x14]
call fcn.0040fde0
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0xfc]
push esi
push 0x64
lea ecx, [esp + 0x84]
push ecx
push 0x47b3d4
push edi
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x7c]
push eax
call fcn.00410560
lea eax, [esi - 0x10]
mov byte [esp + 0xec], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4018ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0xec], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401910
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0xec], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401937
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.004540ed
add esp, 0xe0
ret
Function at 0x403dc0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push esi
push str.MYDATA
push 0x124
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x403ddd
xor eax, eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403dd9
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov eax, dword [esp + 0x10]
push 0x47aaa4
push eax
call fcn.004547d8
mov esi, eax
add esp, 8
test esi, esi
je 0x403e34
push esi
push 1
push ebx
push edi
call fcn.00454905
push esi
call fcn.00454a05
add esp, 0x14
pop edi
pop ebx
mov eax, 1
pop esi
ret
pop edi
pop ebx
xor eax, eax
pop esi
ret

Function at 0x403e40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x46d358
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x48e820]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
movzx eax, word [esp + 0x1c]
push str.MYDATA
push eax
push 0
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x403ebf
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403eab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403e83
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, dword [esp + 0x20]
push eax
push esi
mov eax, edi
call fcn.0041cff0
lea eax, [esi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret