joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427d7d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x427d8c
pop dword [ebp - 0x44]
mov eax, 0x308de61a
add eax, 0xcfb49772
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x4f234
push 0
mov eax, 0x7ea13ab1
sub eax, 0x7e5c8801
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x4417
xor edi, edi
add edi, eax
mov ebx, 0xbea2ac81
sub ebx, 0xbe5b4e81
add ebx, dword [ebp - 0x44]
mov edx, 0xd85ed738
xor dword [ebp - 0x20], ebx
mov esi, dword [ebx]
xor dword [ebp - 0x10], edx
sub esi, edx
sub dword [ebp - 0x34], 0x7cfef88a
mov dword [edi], esi
xor dword [ebp - 0x40], edi
add edi, 0xa9bbec89
sub edi, 0xa9bbec85
add ebx, 0x2cbc4b5f
add ebx, 0xd343b4a5
loop 0x427de1
add eax, 0x7715eafc
add eax, 0x88eb1833
xor ebx, ebx
add ebx, eax
add eax, 0xd8369369
add eax, 0x27c96c9c
mov ecx, 0xeea284a0
sub ecx, 0xee6284a0
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x10002820
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10002878
cmp byte [esi + ebx - 1], 0xa
je 0x1000284c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x1000a084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x10002ea0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x10003078
mov edi, dword [0x1000a084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x10002f87
test byte [0x10004030], 8
jne 0x10003020
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x10004040], 8
jne 0x10002fe0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10002f29
cmp esi, 3
jbe 0x10002f98
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x10002f3a
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x10007228]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10002f29
mov dword [esp], 0x10004040
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10002f00
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x10002f00
mov dword [esp], 0x10004030
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10002eeb
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x10002ef3
mov eax, 0xffffffff
jmp 0x10002f87
Function at 0x4010b0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ecx
push ebx
push edi
mov edi, dword [section..data]
cmp edi, 0xffffffff
mov ebx, ecx
je 0x4010e4
mov edx, dword [ebx]
mov eax, edx
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4010c8
push 0
lea ecx, [esp + 0x10]
push ecx
sub eax, esi
push eax
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov edx, dword [ebx]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop ebx
pop ecx
ret

Function at 0x401120
Capabilities:
Enumerate process modules
Get common file path

Disassembly:
sub esp, 0xc
push ebp
push esi
push 0x400
mov ebp, ecx
call fcn.00407619
mov dword [ebp], eax
mov eax, dword [esp + 0x1c]
add esp, 4
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401140
sub eax, edx
add eax, 1
push eax
call fcn.00407619
add esp, 4
cmp dword [section..data], 0xffffffff
mov dword [ebp + 4], eax
jne 0x401266
push ebx
push edi
push 0x104
call fcn.00407619
push 0x104
mov ebx, eax
call fcn.00407619
mov esi, eax
add esp, 8
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push edi
call sub.PSAPI.DLL_EnumProcessModules
test esi, esi
je 0x40124a
test ebx, ebx
je 0x401257
mov edx, dword [esp + 0x14]
push 0x104
push esi
push edx
push edi
call sub.PSAPI.DLL_GetModuleBaseNameA
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40124a
mov eax, esi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4011d5
mov edi, ebx
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4011e5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call fcn.004104d0
push str..exe
push ebx
call fcn.004103ba
add esp, 0xc
test eax, eax
je 0x401246
push str..log
push 0x104
push eax
call fcn.004106d6
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [section..data], eax
mov esi, dword [esp + 0x10]
test ebx, ebx
je 0x401257
push ebx
call fcn.00407614
add esp, 4
test esi, esi
pop edi
pop ebx
je 0x401266
push esi
call fcn.00407614
add esp, 4
mov eax, dword [ebp + 4]
test eax, eax
je 0x4012c2
cmp dword [ebp], 0
je 0x4012c2
mov esi, dword [esp + 0x18]
push esi
push 0x104
push eax
call fcn.004106d6
mov eax, dword [ebp]
push 0x400
push 0x20
push eax
call fcn.00410d80
mov ecx, dword [0x42fe44]
mov eax, dword [ebp]
push esi
push str._s:_Entering_r_n
add eax, ecx
add ecx, 1
push 0x104
push eax
mov dword [0x42fe44], ecx
call fcn.00410d57
add esp, 0x28
mov ecx, ebp
call fcn.004010b0
pop esi
mov eax, ebp
pop ebp
add esp, 0xc
ret 4
Function at 0x401410
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
push 0x400
push 0x20
push eax
call fcn.00410d80
mov edx, dword [esp + 0x18]
mov eax, dword [0x42fe44]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov edx, dword [esi]
mov ecx, 0x3fc
sub ecx, eax
push ecx
add edx, eax
push 0x104
push edx
call fcn.004110db
add esp, 0x20
test eax, eax
jge 0x40145a
mov eax, dword [esi]
mov byte [eax + 0x3fc], 0
mov edx, dword [esi]
mov eax, edx
push edi
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401462
sub eax, edi
lea eax, [edx + eax - 1]
push 0x4254b0
push eax
call fcn.004103ba
add esp, 8
test eax, eax
pop edi
jne 0x401499
mov ecx, dword [esi]
push 0x4254b0
push 0x104
push ecx
call fcn.00410dfa
add esp, 0xc
mov ecx, esi
pop esi
jmp fcn.004010b0
Function at 0x4040a0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x423198
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push esi
mov eax, dword [0x42ea58]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
push str.CStubApp::RunCreateProcess
lea ecx, [esp + 0xc]
call fcn.00401120
push 0x44
xor esi, esi
lea eax, [esp + 0x24]
push esi
push eax
mov dword [esp + 0x78], 0
call fcn.00410d80
add esp, 0xc
cmp byte [esp + 0x7c], 0
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x28], str.winsta0default
jne 0x404110
mov dword [esp + 0x4c], 1
mov word [esp + 0x50], si
xor eax, eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x94]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x404150
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x404177
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 8]
push str.Process_launched
push ecx
mov dword [edx], eax
call fcn.00401410
add esp, 8
lea ecx, [esp + 8]
mov dword [esp + 0x6c], 0xffffffff
call fcn.004012d0
mov eax, esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x68
ret 0xc
Function at 0x4045b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x423216
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x42ea58]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
push edi
mov eax, dword [0x42ea58]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
mov esi, ecx
push str.CStubApp::HardWareWizardDetectProc
lea ecx, [esp + 0x20]
call fcn.00401120
mov ecx, dword [esi]
mov dword [esp + 0x270], 0
call fcn.004014f0
mov edi, 1
lea ecx, [esp + 0x24]
mov esi, eax
mov dword [esp + 0x14], edi
call fcn.00406d70
push esi
push 0
push str.COUNT
push str.FILE_DETECT
mov byte [esp + 0x280], 1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [esp + 0x18], eax
jl 0x40471c
push edi
lea eax, [esp + 0x44]
push 0x425dc8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push esi
push 0x104
lea ecx, [esp + 0x54]
push ecx
push 0
lea edx, [esp + 0x50]
push edx
push str.FILE_DETECT
call ebx
lea eax, [esp + 0x4c]
push 0x3a
push eax
call fcn.00412325
add esp, 8
test eax, eax
jne 0x4046cd
lea ecx, [esp + 0x4c]
push 0x2a
push ecx
call fcn.00412325
add esp, 8
test eax, eax
jne 0x4046cd
lea eax, [esp + 0x4c]
add eax, 0xffffffff
lea ecx, [ecx]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x4046b0
mov dx, word [0x4260f8]
mov cl, byte [0x4260fa]
mov word [eax], dx
mov byte [eax + 2], cl
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x28]
call fcn.00406700
test eax, eax
je 0x4046f8
lea eax, [esp + 0x4c]
push eax
push str._s_is_loaded_r_n
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0
push ecx
jmp 0x404707
lea edx, [esp + 0x4c]
push edx
push str._s_is_NOT_loaded_r_n
lea eax, [esp + 0x24]
push eax
call fcn.00401410
add edi, 1
add esp, 0xc
cmp edi, dword [esp + 0x18]
jle 0x404653
push esi
push 0
push str.COUNT
push str.REG_DETECT
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, 1
cmp eax, edi
mov dword [esp + 0x18], eax
jl 0x4047b3
lea esp, [esp]
push edi
lea ecx, [esp + 0x44]
push 0x425dc8
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push esi
push 0x104
lea edx, [esp + 0x54]
push edx
push 0
lea eax, [esp + 0x50]
push eax
push str.REG_DETECT
call ebx
push esi
push 0x104
lea ecx, [esp + 0x15c]
push ecx
push 0
lea edx, [esp + 0x5c]
push edx
push str.REG_DETECT
call ebx
lea eax, [esp + 0x154]
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.004041a0
add esp, 8
test eax, eax
je 0x4047aa
mov dword [esp + 0x14], 0
add edi, 1
cmp edi, dword [esp + 0x18]
jle 0x404740
lea ecx, [esp + 0x24]
mov byte [esp + 0x270], 0
call fcn.00406ce0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x270], 0xffffffff
call fcn.004012d0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.00410afa
mov esp, ebp
pop ebp
ret
Function at 0x410afa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42ea58]
jne 0x410b04
repz ret
jmp fcn.004177f5
Function at 0x41d919
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00415aca
xor ebx, ebx
cmp dword [0x4326e8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x41d9ee
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x41d959
xor eax, eax
jmp 0x41dab2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x429288
push edi
call esi
cmp eax, ebx
je 0x41d952
push eax
call fcn.00415a67
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4326e8], eax
call esi
push eax
call fcn.00415a67
mov dword [esp], 0x429264
push edi
mov dword [0x4326ec], eax
call esi
push eax
call fcn.00415a67
mov dword [0x4326f0], eax
lea eax, [ebp - 8]
push eax
call fcn.00414e23
test eax, eax
pop ecx
pop ecx
je 0x41d9bc
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004125c2
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x41d9ee
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00415a67
cmp eax, ebx
pop ecx
mov dword [0x4326f8], eax
je 0x41d9ee
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00415a67
pop ecx
mov dword [0x4326f4], eax
mov eax, dword [0x4326f4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x41da67
cmp dword [0x4326f8], esi
je 0x41da67
push eax
call fcn.00415ad3
pop ecx
call eax
cmp eax, ebx
je 0x41da34
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4326f8]
call fcn.00415ad3
pop ecx
call eax
test eax, eax
je 0x41da34
test byte [ebp - 0x18], 1
jne 0x41da67
lea eax, [ebp - 0xc]
push eax
call fcn.00414e5a
test eax, eax
pop ecx
je 0x41da4f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004125c2
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x41da5e
or dword [ebp + 0x10], 0x200000
jmp 0x41da98
or dword [ebp + 0x10], 0x40000
jmp 0x41da98
mov eax, dword [0x4326ec]
cmp eax, esi
je 0x41da98
push eax
call fcn.00415ad3
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41da98
mov eax, dword [0x4326f0]
cmp eax, esi
je 0x41da98
push dword [ebp - 4]
push eax
call fcn.00415ad3
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4326e8]
call fcn.00415ad3
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x422b9e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x42ea58]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00422b33
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00410d80
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x422bed
cmp dword [ebp - 0x1c], 5
jb 0x422c05
jmp 0x422c01
cmp dword [ebp - 0x10], 1
jne 0x422c05
cmp dword [ebp - 0x1c], 4
ja 0x422c01
jne 0x422c05
cmp dword [ebp - 0x18], 0
jbe 0x422c05
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x429320
call fcn.00422a24
test eax, eax
jge 0x422c26
mov byte [0x42fe40], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00410afa
add ebp, 0x78
leave
ret
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x409b38
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x409b47
pop dword [ebp - 0x10]
mov eax, 0x5a647726
sub eax, 0x5a23dbdf
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xcea46435
sub dword [ebp - 0x20], 0x80521eea
mov dword [ebp - 0x1c], 0x21119c5e
sub dword [ebp - 0x1c], 0xeede5019
mov dword [ebp - 0x18], 0x506a3a21
add dword [ebp - 0x18], 0xfbe20a0d
mov dword [ebp - 0x14], 0xe90b502a
sub dword [ebp - 0x14], 0xe90b502a
lea eax, [ebp - 0x20]
push eax
mov eax, 0x6b618cb3
add eax, 0x94df43a1
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x88d064f8
sub dword [ebp - 0x20], 0x145dfba2
mov dword [ebp - 0x1c], 0xb199a678
sub dword [ebp - 0x1c], 0x702d4503
mov dword [ebp - 0x18], 0x75e41d3b
add dword [ebp - 0x18], 0xed8b4f31
mov dword [ebp - 0x14], 0xecb23885
add dword [ebp - 0x14], 0x134dc77b
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x36b0a
push 0
call eax
mov ecx, 0x6844f445
add ecx, 0x97bb4852
mov edx, eax
mov ebx, 0xf916ec93
sub ebx, 0xf8d53c93
add ebx, dword [ebp - 0x10]
mov esi, 0x2f60db4a
xor dword [ebp - 8], esi
mov edi, dword [ebx]
add dword [ebp - 8], 0x28539bfe
xor edi, esi
xor dword [ebp - 4], eax
mov dword [edx], edi
sub dword [ebp - 8], edx
add edx, 0x59126e5a
sub edx, 0x59126e56
add ebx, 0x61d7d803
sub ebx, 0x61d7d7ff
loop 0x409c5e
add eax, 0xc46b4cb5
sub eax, 0xc46a6786
mov ebx, eax
add eax, 5
mov ecx, 0x5638d0b
sub ecx, 0x5238d0b
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x402bdc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
mov dword [ebp - 4], 0x208
push eax
push 0
push 0x401424
push ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x402c3d
mov eax, dword [ebp - 4]
cmp eax, 2
jb 0x402c38
shr eax, 1
xor ecx, ecx
cmp cx, word [esi + eax*2 - 2]
jne 0x402c38
mov eax, dword [ebp - 8]
sub eax, 1
je 0x402c34
sub eax, 1
jne 0x402c38
mov ecx, esi
call fcn.00402a6e
test eax, eax
jne 0x402c3d
xor eax, eax
jmp 0x402c3d
mov eax, 0x3f7
pop esi
leave
ret 8

Function at 0x403140
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x403730
call fcn.00403440
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4031a0
cmp eax, 0xffffffff
je 0x4031a0
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x403199
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x403199
cmp edx, 0x10000000
jae 0x403199
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x403196
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x403220
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40325e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x403256
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x403260
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x403246
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x403340
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x403371
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x403371
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x403371
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10001c60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x10001e38
mov edi, dword [0x10006084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x10001d47
test byte [0x10002030], 8
jne 0x10001de0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x10002040], 8
jne 0x10001da0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10001ce9
cmp esi, 3
jbe 0x10001d58
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x10001cfa
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x10004110]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10001ce9
mov dword [esp], 0x10002040
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10001cc0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x10001cc0
mov dword [esp], 0x10002030
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10001cab
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x10001cb3
mov eax, 0xffffffff
jmp 0x10001d47