joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4412bd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4412eb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x441309
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00441227
jmp 0x441309
mov eax, dword [esi + 0x14]
test eax, eax
je 0x441309
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00441227
test edi, edi
mov eax, edi
jne 0x4412f3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x56b4b4]
test ecx, ecx
je 0x4413bc
jmp 0x4412bc
ret 8

Function at 0x401a6f
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
call sub.kernel32.dll_GetCommandLineA
mov dword [0x404f48], eax
add ebp, 8
mov dword [0x404123], ebp
sub ebp, 8
mov dword [0x404f4c], 0x30
mov dword [0x404f50], 3
mov dword [0x404f58], 0
mov dword [0x404f5c], 0
mov dword [0x404f54], 0x402a60
mov eax, dword [0x40411b]
mov dword [0x404f60], eax
mov dword [0x404f6c], 0x10
mov dword [0x404f74], 0x404108
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [0x404f64], eax
mov dword [0x404f78], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [0x404f68], eax
push 0x404f4c
call sub.user32.dll_RegisterClassExA
push 0
push dword [0x40411b]
push 0
push 0
push 0xc8
push 0x12c
push 0x50
push 0x190
push 0xc0000
push str.Hello_from_Win32
push str.Class1
push 0
call sub.user32.dll_CreateWindowExA
mov dword [0x404f40], eax
push 0
push dword [0x404f40]
call sub.user32.dll_ShowWindow
push dword [0x404f40]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
push 0x404f7c
call sub.user32.dll_GetMessageA
or eax, eax
je 0x401b83
push 0x404f7c
call sub.user32.dll_TranslateMessage
push 0x404f7c
call sub.user32.dll_DispatchMessageA
jmp 0x401b59
mov eax, dword [0x404f84]
mov esi, dword [0x404fdc]
lea ecx, [0x40411b]
add esi, eax
call esi
mov eax, dword [0x404f84]
push eax
call sub.kernel32.dll_ExitProcess
int3
Function at 0x401000
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], 0
test byte [ebp + 0x14], 3
je 0x401043
mov eax, dword [ebp + 0x14]
and al, 3
cmp al, 3
jne 0x401054
mov dword [ebp - 0x14], 4
jmp 0x401200
push 0x24
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40107c
mov dword [ebp - 0x14], 1
jmp 0x4011fb
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x4953444d
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x20], 0
test byte [ebp + 0x14], 2
jne 0x40115c
mov dword [ebp - 0xc], 1
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
mov dword [ebp + 0xc], 0
cmp dword [ebp - 4], 0xffffffff
jne 0x4010eb
mov dword [ebp - 0x14], 2
jmp 0x4011f6
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp + 0x10], eax
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40112c
mov dword [ebp - 0x14], 2
jmp 0x4011f1
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x40115c
mov dword [ebp - 0x14], 2
jmp 0x4011ec
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.00401210
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x401196
cmp dword [ebp - 0x10], 0
je 0x401191
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40119e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
cmp dword [ebp - 0xc], 0
je 0x4011e4
cmp dword [ebp + 0xc], 0
je 0x4011bc
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 8], 0
je 0x4011d0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0xffffffff
je 0x4011e4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
jmp 0x401205
jmp 0x401173
jmp 0x401173
jmp 0x401173
jmp 0x401173
jmp 0x401173
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403320
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0xffffffff
jne 0x4033bb
push 0x42106c
lea eax, [ebp - 0x108]
push eax
call fcn.004177f0
add esp, 8
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004177f8
add esp, 8
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0xffffffff
jne 0x4033bb
xor eax, eax
jmp 0x40344b
push 0
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x110], eax
cmp dword [ebp + 0x10], 0
je 0x4033fd
mov eax, dword [ebp - 0x110]
push eax
call fcn.00417770
add esp, 4
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x4033fd
xor eax, eax
jmp 0x40344b
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x110]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403436
mov eax, dword [ebp + 0xc]
push eax
call fcn.00417750
add esp, 4
xor eax, eax
jmp 0x40344b
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
jmp 0x40344b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417950
Capabilities:
Terminate process

Disassembly:
mov dword [0x4230f0], 1
cmp dword [esp + 8], 0
push ebx
push esi
mov ebx, dword [esp + 0x14]
mov byte [0x4230ec], bl
jne 0x4179ac
cmp dword [0x440d7c], 0
je 0x41799a
mov esi, dword [0x440d78]
sub esi, 4
cmp esi, dword [0x440d7c]
jb 0x41799a
mov eax, dword [esi]
test eax, eax
je 0x41798f
call eax
sub esi, 4
cmp esi, dword [0x440d7c]
jae 0x417987
push 0x421048
push 0x421040
call fcn.004179d0
add esp, 8
push 0x421050
push 0x42104c
call fcn.004179d0
add esp, 8
test ebx, ebx
jne 0x4179cd
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebx
ret

Function at 0x417ff0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x418015
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041a9a0
add esp, 4
mov eax, 0xffffffff
ret
test al, 1
je 0x41803a
test byte [esp + 8], 2
je 0x41803a
mov dword [0x4230ac], 0xd
mov dword [0x4230b0], 5
mov eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x4187a0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420128
push 0x41c724
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x4230b8], eax
xor eax, eax
mov al, byte [0x4230b9]
mov dword [0x4230c4], eax
mov eax, dword [0x4230b8]
shr dword [0x4230b8], 0x10
and eax, 0xff
mov dword [0x4230c0], eax
shl eax, 8
add eax, dword [0x4230c4]
mov dword [0x4230bc], eax
call fcn.00419e80
mov dword [ebp - 4], 0
call fcn.0041ad10
call fcn.0041c710
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x440d74], eax
call fcn.0041c2b0
mov dword [0x423108], eax
test eax, eax
je 0x418839
cmp dword [0x440d74], 0
jne 0x418843
push 0xffffffffffffffff
call fcn.00417910
add esp, 4
call fcn.0041c030
call fcn.0041bf50
call fcn.004178e0
mov esi, dword [0x440d74]
mov al, byte [esi]
cmp al, 0x22
je 0x41886a
cmp al, 0x20
jbe 0x418897
inc esi
cmp byte [esi], 0x20
ja 0x418862
jmp 0x418897
inc esi
cmp byte [esi], 0x22
je 0x418896
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x418891
xor eax, eax
mov al, bl
push eax
call fcn.0041bef0
add esp, 4
test eax, eax
je 0x41888b
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x418873
cmp byte [esi], 0x22
jne 0x418897
inc esi
cmp byte [esi], 0
je 0x4188a7
cmp byte [esi], 0x20
ja 0x4188a7
inc esi
cmp byte [esi], 0
jne 0x41889c
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x4188cb
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00417910
jmp 0x41890c
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a770
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x418
cmp dword [0x440c60], edx
push ebx
push esi
push edi
push ebp
jbe 0x41a977
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x440c70
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ecx, dword [esp + 0x18]
shl eax, 3
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + ebp + 4]
test al, 1
je 0x41a977
xor esi, esi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], esi
cmp ebp, esi
jne 0x41a7d9
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
test al, 0x20
je 0x41a7ea
push 2
push 0
push edx
call fcn.0041af40
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x41a886
mov dword [esp + 0x10], 0
mov edi, dword [esp + 0x430]
mov eax, edi
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x41a8bf
lea ebx, [esp + 0x24]
mov eax, edi
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x41a84d
mov al, byte [edi]
inc edi
cmp al, 0xa
jne 0x41a83b
mov byte [ebx], 0xd
inc esi
inc ebx
mov byte [ebx], al
inc ebx
mov eax, ebx
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x41a822
lea eax, [esp + 0x24]
push 0
sub ebx, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push ebx
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41a8b5
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, ebx
jge 0x41a80d
jmp 0x41a8bf
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41a8b5
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x41a8bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x41a966
cmp dword [esp + 0x10], 0
je 0x41a918
cmp dword [esp + 0x10], 5
jne 0x41a8fb
mov dword [0x4230ac], 9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [0x4230b0], eax
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.0041a9a0
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x41a942
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x41a942
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x4230ac], 0x1c
mov dword [0x4230b0], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, esi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x4230ac], 9
mov dword [0x4230b0], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x41c2b0
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
cmp dword [0x423940], 0
push ebx
push esi
push edi
push ebp
jne 0x41c300
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
call esi
mov edi, eax
test edi, edi
je 0x41c2de
mov dword [0x423940], 1
mov ebx, dword [esp + 0x10]
jmp 0x41c30e
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x41c2f6
mov dword [0x423940], 2
jmp 0x41c30e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x423940], 1
jne 0x41c3bd
test edi, edi
jne 0x41c331
call esi
mov edi, eax
test edi, edi
jne 0x41c331
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x41c34b
add esi, 2
cmp word [esi], 0
jne 0x41c339
add esi, 2
cmp word [esi], 0
jne 0x41c339
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x41c3ac
push ebp
call fcn.00417770
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x41c3ac
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x41c39b
push ebx
call fcn.00417750
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x423940], 2
jne 0x41c441
test ebx, ebx
jne 0x41c3e0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x41c3e0
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x41c3f5
inc ebp
cmp byte [ebp], 0
jne 0x41c3e7
inc ebp
cmp byte [ebp], 0
jne 0x41c3e7
sub ebp, ebx
inc ebp
push ebp
call fcn.00417770
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x41c41a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x41c840
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor eax, eax
mov ecx, 0x423dc8
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [ecx], edx
je 0x41c868
add ecx, 8
inc eax
cmp ecx, 0x423e50
jb 0x41c858
cmp dword [eax*8 + 0x423dc8], edx
lea ebx, [eax*8]
jne 0x41ca23
cmp dword [0x423114], 1
je 0x41c9e8
cmp dword [0x423114], 0
jne 0x41c89f
cmp dword [0x423118], 1
je 0x41c9e8
cmp edx, 0xfc
je 0x41ca23
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x41c8dc
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x41c920
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x423e9c
push ebp
call fcn.0041dfd0
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x423e7c
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x423dcc]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.0041e250
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x440c70]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x41c9ff
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x423dcc]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x41f670
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.0041fd40
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [esp + 0x1014]
push ebp
cmp dword [0x440c60], esi
jbe 0x41f7bd
mov eax, esi
mov ecx, esi
and eax, 0xffffffe7
and ecx, 0x1f
sar eax, 3
mov edx, dword [eax + 0x440c70]
test byte [edx + ecx*8 + 4], 1
je 0x41f7bd
push 1
push ebx
push esi
call fcn.0041af40
mov dword [esp + 0x1c], eax
add esp, 0xc
cmp eax, 0xffffffff
je 0x41f7ad
push 2
push ebx
push esi
call fcn.0041af40
add esp, 0xc
cmp eax, 0xffffffff
je 0x41f7ad
mov ecx, dword [esp + 0x101c]
mov ebp, ecx
sub ebp, eax
test ebp, ebp
jle 0x41f753
lea edi, [esp + 0x14]
xor eax, eax
mov ecx, 0x400
push 0x8000
rep stosd dword es:[edi], eax
push esi
call fcn.0041fcc0
add esp, 8
mov edi, eax
mov eax, 0x1000
cmp ebp, eax
jge 0x41f716
mov eax, ebp
push eax
lea eax, [esp + 0x18]
push eax
push esi
call fcn.0041a770
add esp, 0xc
cmp eax, 0xffffffff
je 0x41f732
sub ebp, eax
test ebp, ebp
jg 0x41f70b
jmp 0x41f747
cmp dword [0x4230b0], 5
jne 0x41f745
mov dword [0x4230ac], 0xd
mov ebx, eax
push edi
push esi
call fcn.0041fcc0
add esp, 8
jmp 0x41f790
jge 0x41f790
push 0
push ecx
push esi
call fcn.0041af40
add esp, 0xc
push esi
call fcn.0041d9d0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sbb ebx, ebx
cmp ebx, 0xffffffff
jne 0x41f790
mov dword [0x4230ac], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4230b0], eax
mov eax, dword [esp + 0x10]
push 0
push eax
push esi
call fcn.0041af40
add esp, 0xc
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x4230ac], 9
pop edi
pop esi
pop ebx
add esp, 0x1004
ret

Function at 0x4252a0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
jmp 0x4252b8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jae 0x42535c
mov edx, dword [ebp - 4]
sub edx, 0x231d
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + eax*2 + 0x463a]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
shr eax, 0xc
cmp eax, 3
jne 0x425357
mov ecx, dword [ebp - 8]
push ecx
call fcn.004257c0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x425316
push 0x154b
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x425316
xor eax, eax
jmp 0x42535c
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax - 0x4c3f8]
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx]
add ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov edx, dword [ebp + 0x10]
mov dword [edx + eax], ecx
mov eax, dword [ebp - 8]
sub eax, 0x4c3f8
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
sub edx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
jmp 0x4252af
mov esp, ebp
pop ebp
ret
Function at 0x4013cf
Capabilities:
Encode data using xor

Disassembly:
jmp 0x411f5d
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x412080
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebx, str.Soviet_aristo_baristo
mov ebp, 0x55d9e8
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
sub byte [esi + edi], 0x6c
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x39
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0xa6
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
xor byte [esi + edi], 0xf9
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x11
push ebx
push ebp
call fcn.00403490
add esp, 0x44
push eax
call fcn.004013b6
xor byte [esi + edi], 0x95
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x94
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x32
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
xor byte [esi + edi], 0xf7
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
xor byte [esi + edi], 0xc4
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x6e
add esp, 0x40
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x4d
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x2c
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0xda
add esp, 0x24
inc esi
cmp esi, dword [esp + 0x18]
jb 0x411f7b
pop edi
pop ebp
pop ebx
pop esi
ret

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

Disassembly:
jmp 0x412674
sub esp, 0x20
mov eax, dword [0x55b5c0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov edi, dword [eax + esi + 0x78]
add edi, esi
mov ebx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
add ebx, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x4126f3
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00401e2e
push str.Hardline
push 0x55dad0
call fcn.00402d60
push eax
call fcn.00406082
lea eax, [esp + 0x20]
push 0x36c
push eax
call fcn.00402cc5
add esp, 0x14
cmp eax, dword [esp + 0x38]
je 0x41270d
lea ecx, [esp + 0x14]
add ebx, 4
call fcn.00402982
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x4126a5
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403030
add esp, 0x20
ret 8
mov eax, dword [edi + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [edi + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402982
jmp 0x4126f5