joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003e1c1
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x80000301
push 0
push 0x20
push 1
mov ebx, 0x1bc
call fcn.10041dc0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x1003e222
push ebx
call fcn.100409af
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.10002feb
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
nop
nop
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1003e37a
push edi
push edx
push esi
mov eax, dword [ebp - 8]
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov edx, ecx
mov edi, dword [ebp - 4]
mov esi, dword [eax]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
pop edx
pop edi
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0x910
call fcn.100421c0
add esp, 0x1c
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push VariantClear
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x1003e2d0
mov eax, 0x1005221b
push eax
push 3
mov ebx, 0x19c
call fcn.10042310
add esp, 0x28
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1003e2fc
push ebx
call fcn.100409af
add esp, 4
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
cmp ecx, 0x80000101
jne 0x1003e314
and eax, 0xff
jmp 0x1003e369
cmp ecx, 0x80000201
jne 0x1003e31f
cwde
jmp 0x1003e369
cmp ecx, 0x80000301
je 0x1003e369
cmp ecx, 0x80000401
je 0x1003e369
mov dword [ebp - 0x24], eax
cmp ecx, 0x80000501
je 0x1003e359
cmp ecx, 0x80000601
je 0x1003e35e
push 0x366
push 0x4015f05
push 2
call fcn.100409c7
add esp, 0xc
fld dword [ebp - 0x24]
jmp 0x1003e364
mov dword [ebp - 0x20], edx
fld qword [ebp - 0x24]
call fcn.10003174
push eax
call fcn.1003e39c
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
jmp 0x1003e384
mov eax, 0x1005221a
jmp 0x1003e384
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x1003e395
push ebx
call fcn.100409af
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x100416d0
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
sub esp, 0x294
lea eax, [esp + 0x104]
push esi
push eax
push 0x202
xor esi, esi
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x10041722
lea ecx, [esp + 4]
push 0x104
push ecx
call sub.WS2_32.dll_gethostname
test eax, eax
jne 0x1004171d
lea edx, [esp + 4]
push edx
call dword [0x10075cec]
push eax
lea eax, [esp + 0xc]
push eax
call fcn.10046d20
add esp, 0xc
mov esi, eax
call sub.WS2_32.dll_WSACleanup
mov eax, esi
pop esi
add esp, 0x294
ret
Function at 0x100425e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x10042621.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x10042621.2
jmp dword [eax*4 + 0x100426ac]
mov word [esp + 0x48], di
jmp 0x1004265a
mov word [esp + 0x48], 2
jmp 0x1004265a
mov word [esp + 0x48], 3
jmp 0x1004265a
mov word [esp + 0x48], 4
jmp 0x1004265a
mov word [esp + 0x48], 7
jmp 0x1004265a
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x100426a4
cmp dword [esp + 0x70], edi
je 0x10042690
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret
Function at 0x10044080
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
push eax
call fcn.10047e60
mov edi, dword [esp + 0x38]
xor ebp, ebp
push edi
mov ebx, eax
mov dword [esp + 0x18], ebp
call dword [0x10075cec]
add esp, 8
test ebx, ebx
je 0x100441c4
test eax, eax
je 0x100441c4
inc eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
or ecx, 0xffffffff
xor eax, eax
push 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MSVCRT.dll_strrchr
mov edi, eax
add esp, 0xc
test edi, edi
je 0x100440f2
mov byte [edi], 0
inc edi
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100441b1
push 0x400
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x1c], 1
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push 0
push edi
push eax
call ebx
test eax, eax
je 0x1004417a
cmp eax, 0xea
jne 0x1004419d
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x18]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [esp + 0x14]
mov esi, eax
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push 0
push edi
push ecx
call ebx
test eax, eax
jne 0x10044145
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x10044188
cmp eax, 2
jne 0x1004419d
push esi
call dword [0x10075cec]
push eax
push esi
call fcn.10046d20
add esp, 0xc
mov dword [esp + 0x10], eax
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0x100441ed
mov ebp, eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x100441f9
mov esi, dword [esp + 0x40]
test esi, esi
je 0x100441f9
push esi
call dword [0x10075cec]
push eax
push esi
call fcn.10046d20
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x10044210
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x10044279
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.10041200
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x100442e0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x140
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [esp + 0x154]
xor ebp, ebp
test edi, edi
je 0x10044360
push edi
call dword [0x10075cec]
add esp, 4
test eax, eax
jbe 0x10044360
test esi, esi
je 0x1004431e
cmp esi, 0xffffffff
je 0x1004431e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebx], esi
je 0x100443a2
mov eax, dword [esp + 0x15c]
test eax, eax
je 0x1004434c
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
je 0x10044360
jmp 0x1004435b
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x10]
test edx, eax
je 0x10044360
mov ebp, 1
test esi, esi
je 0x100443a2
cmp esi, 0xffffffff
je 0x100443a2
test ebp, ebp
jne 0x100443d9
mov eax, dword [esp + 0x15c]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x10]
push eax
push esi
je 0x100443af
call edi
test eax, eax
je 0x100443a2
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
jne 0x100443d9
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x1004438a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x140
ret
call edi
test eax, eax
je 0x100443a2
mov ebx, dword [esp + 0x158]
test dword [esp + 0x10], ebx
jne 0x100443d9
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
jne 0x100443bc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
lea edx, [esp + 0x3c]
push edx
call dword [0x10075cec]
inc eax
push eax
call fcn.10041200
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
Function at 0x10046ec0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x10046ee1
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x10046f3b
inc edi
cmp edi, esi
jl 0x10046ed5
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x10046f70
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x10046f2a
cmp byte [eax], bl
je 0x10046f45
cmp byte [eax + 1], bl
je 0x10046f4e
cmp byte [eax + 2], bl
je 0x10046f58
cmp byte [eax + 3], bl
je 0x10046f64
add eax, 4
cmp eax, edi
jb 0x10046f01
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
Function at 0x10001000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10001009

Function at 0x100012ae
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x100012b8
repz ret
jmp fcn.100019e3

Function at 0x1000547c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1000247e
and dword [ebp - 0x14], 0
cmp dword [0x1000a7c8], 0
mov dword [ebp - 0x18], eax
jne 0x1000552f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x100055d7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x100055d7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1000a7c8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1000a7cc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1000a7d0], eax
call edi
push eax
call esi
mov dword [0x1000a7d8], eax
test eax, eax
je 0x1000552f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1000a7d4], eax
mov eax, dword [0x1000a7d4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10005588
cmp dword [0x1000a7d8], ecx
je 0x10005588
push eax
call esi
push dword [0x1000a7d8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10005588
test ebx, ebx
je 0x10005588
call edi
test eax, eax
je 0x1000557f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1000557f
test byte [ebp - 8], 1
jne 0x10005588
or dword [ebp + 0x10], 0x200000
jmp 0x100055bb
mov eax, dword [0x1000a7cc]
cmp eax, dword [ebp - 0x18]
je 0x100055bb
push eax
call esi
test eax, eax
je 0x100055bb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100055bb
mov eax, dword [0x1000a7d0]
cmp eax, dword [ebp - 0x18]
je 0x100055bb
push eax
call esi
test eax, eax
je 0x100055bb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1000a7c8]
call esi
test eax, eax
je 0x100055d7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x100055d9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100012ae
leave
ret
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x176b738c
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x26607b8b
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401020
Capabilities:
Terminate process

Disassembly:
sub esp, 0x424
mov eax, dword [0x453edc]
xor eax, esp
mov dword [esp + 0x420], eax
mov ecx, dword [esp + 0x42c]
lea eax, [esp + 0x430]
push eax
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00434505
mov eax, dword [esp + 0x434]
push eax
lea ecx, [esp + 0x10]
push 0x44f020
push ecx
call fcn.004343fd
mov ecx, dword [0x4578a8]
add esp, 0x18
push 0x10
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x402350
Capabilities:
Write file on windows

Disassembly:
xor eax, eax
mov cl, byte [eax + 0x457540]
mov byte [eax + 0x457380], cl
inc eax
test cl, cl
jne 0x402352
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov ecx, eax
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402370
mov edi, 0x457380
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402381
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x44f248
push 0x457380
rep movsb byte es:[edi], byte [esi]
call fcn.00434f31
mov edi, eax
add esp, 8
test edi, edi
je 0x402463
push 0x44f24c
push ebx
call fcn.004016f0
add esp, 8
test eax, eax
je 0x4023e3
xor eax, eax
jmp 0x4023d0
mov cl, byte [eax + 0x457380]
mov byte [eax + 0x457680], cl
inc eax
test cl, cl
jne 0x4023d0
jmp 0x402441
push 0x44f254
push ebx
call fcn.004016f0
add esp, 8
test eax, eax
je 0x402413
xor eax, eax
jmp 0x402400
mov cl, byte [eax + 0x457380]
mov byte [eax + 0x457680], cl
inc eax
test cl, cl
jne 0x402400
jmp 0x402441
push 0x44f25c
push ebx
call fcn.004016f0
add esp, 8
test eax, eax
je 0x402441
xor eax, eax
jmp 0x402430
mov cl, byte [eax + 0x457380]
mov byte [eax + 0x457680], cl
inc eax
test cl, cl
jne 0x402430
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edi
push esi
push 1
push eax
call fcn.004350d4
add esp, 0x10
push edi
cmp eax, esi
je 0x40246a
call fcn.00434cf5
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
call fcn.00434cf5
mov eax, dword [0x4574f4]
add esp, 4
test eax, eax
jne 0x40251e
push 4
push 0xa
push 0x2ab
mov dword [0x4574f4], 0xa
call fcn.00401090
xor esi, esi
add esp, 0xc
cmp dword [0x4574f4], esi
mov dword [0x4574f8], eax
jle 0x4024d5
lea esp, [esp]
push 1
push 0x104
call fcn.0043452e
add esp, 8
test eax, eax
je 0x402503
mov ecx, dword [0x4574f8]
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [0x4574f4]
jl 0x4024b0
mov eax, dword [0x4574f0]
mov edx, dword [0x4574f8]
mov edx, dword [edx + eax*4]
inc eax
mov ecx, 0x457380
mov dword [0x4574f0], eax
mov edi, edi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4024f0
pop edi
pop esi
mov eax, 1
pop ebx
ret
push 0x104
push 1
push 0x104
push str.cant_allocate_memory__ux_u_u_bytes
push 0x2ad
call fcn.00401020
mov ecx, dword [0x4574f0]
cmp ecx, eax
jl 0x4024d5
mov edx, dword [0x4574f8]
push 4
add eax, 0xa
push eax
push ecx
push edx
push 0x2b2
mov dword [0x4574f4], eax
call fcn.004010d0
add esp, 0x14
mov dword [0x4574f8], eax
mov esi, dword [0x4574f0]
cmp esi, dword [0x4574f4]
jge 0x4024d5
nop
push 1
push 0x104
call fcn.0043452e
add esp, 8
test eax, eax
je 0x40258a
mov ecx, dword [0x4574f8]
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [0x4574f4]
jl 0x402560
jmp 0x4024d5
push 0x104
push 1
push 0x104
push str.cant_allocate_memory__ux_u_u_bytes
push 0x2b4
call fcn.00401020
int3
Function at 0x4026f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x28
push esi
push edi
push 0x457540
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x104
push 0
push 0x457680
call fcn.00434920
mov eax, dword [esp + 0x44]
push eax
call fcn.004025b0
push 0x44f264
push 0x457680
call fcn.004016f0
add esp, 0x18
test eax, eax
je 0x402747
lea ecx, [esp + 8]
push 0x457680
push ecx
call fcn.00401f60
jmp 0x402793
push 0x44f26c
push 0x457680
call fcn.004016f0
add esp, 8
test eax, eax
je 0x40276e
lea edx, [esp + 8]
push 0x457680
push edx
call fcn.00407f60
jmp 0x402793
push 0x44f274
push 0x457680
call fcn.004016f0
add esp, 8
test eax, eax
je 0x4027a4
lea eax, [esp + 8]
push 0x457680
push eax
call fcn.00409180
mov ecx, 0xa
mov edi, 0x4574c0
mov esi, eax
add esp, 8
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x34]
mov ecx, 0xa
mov esi, 0x4574c0
mov edi, eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
add esp, 0x28
ret
Function at 0x406800
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [0x4574ec]
push esi
push edi
mov edi, dword [esp + 0xc]
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x406836
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.cant_find_resource__s_nWin_Err_Code__i
push 0x8f3
call fcn.00401020
mov edx, dword [0x4574ec]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40685f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.cant_load_resource__s_nWin_Err_Code__i
push 0x8f5
call fcn.00401020
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [0x455768], eax
test eax, eax
jne 0x406886
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.cant_lock_resource__s_nWin_Err_Code__i
push 0x8f7
call fcn.00401020
mov eax, dword [0x4574ec]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
mov eax, dword [0x455768]
pop edi
mov dword [0x45576c], edx
pop esi
ret

Function at 0x4068f0
Capabilities:
Inspect load icon resource

Disassembly:
sub esp, 0x28
xor eax, eax
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [0x4574ec]
push 0x44f9cc
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x40]
or eax, 3
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
push eax
push 0
mov dword [esp + 0x30], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], edx
call dword [sym.imp.USER32.dll_LoadCursorA]
lea ecx, [esp + 4]
push ecx
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x406992
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.cant_register__s_class_nWin_error_code__li
push 0x914
call fcn.00401020
pop esi
add esp, 0x28
ret