joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c4c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x433c51
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
mov eax, dword [0x4441e0]
push ebx
push esi
push edi
mov dword [esp + 0x124], eax
mov esi, ecx
call fcn.00426313
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 0x134], 0
call fcn.00426313
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x10], ebx
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
stosb byte es:[edi], al
push 0x10
lea eax, [esp + 0x20]
push eax
push 0
mov byte [esp + 0x144], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x40c5e8
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x10]
push 0x437730
push edx
call fcn.00409e30
mov eax, dword [esi]
mov ecx, dword [eax + 0xc]
push ecx
lea edx, [esp + 0x20]
push str._swnwbwnwb.exe
push edx
call fcn.00409e30
mov eax, dword [esi]
add esp, 0x18
push str.wnwb
add eax, 0xc
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00405dc0
mov eax, dword [eax]
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
push 0x657
push 1
push 0x437710
push ebx
push edx
mov ecx, esi
mov byte [esp + 0x14c], 2
call fcn.0040c120
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c5e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add ebx, 0xfffffff0
mov byte [esp + 0x134], 0
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c60a
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x134], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c633
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x124]
mov eax, 1
call fcn.004185be
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c970
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x433c51
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
mov eax, dword [0x4441e0]
push ebx
push esi
push edi
mov dword [esp + 0x124], eax
mov esi, ecx
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
stosb byte es:[edi], al
push 0x16
lea eax, [esp + 0x20]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x40cae4
call fcn.00426313
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 0x134], 0
call fcn.00426313
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
push 0x437860
push ecx
mov byte [esp + 0x140], 1
call fcn.00409e30
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
push eax
lea ecx, [esp + 0x20]
push str._swnwbwnwb.exe
push ecx
call fcn.00409e30
mov edx, dword [esi]
add esp, 0x18
push str.wnwb
add edx, 0xc
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00405dc0
mov eax, dword [eax]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
push eax
push 0x657
push 1
push 0x437710
push edi
push ebx
mov ecx, esi
mov byte [esp + 0x14c], 2
call fcn.0040c120
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ca98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov byte [esp + 0x134], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40caba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov dword [esp + 0x134], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cadf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x124]
call fcn.004185be
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cb10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x433c51
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
mov eax, dword [0x4441e0]
push ebx
push esi
push edi
mov dword [esp + 0x124], eax
mov esi, ecx
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
stosb byte es:[edi], al
push 0x17
lea eax, [esp + 0x20]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x40cc84
call fcn.00426313
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 0x134], 0
call fcn.00426313
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
push 0x437860
push ecx
mov byte [esp + 0x140], 1
call fcn.00409e30
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
push eax
lea ecx, [esp + 0x20]
push str._swnwbwnwb.exe
push ecx
call fcn.00409e30
mov edx, dword [esi]
add esp, 0x18
push str.wnwb
add edx, 0xc
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00405dc0
mov eax, dword [eax]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
push eax
push 0x657
push 1
push 0x437710
push edi
push ebx
mov ecx, esi
mov byte [esp + 0x14c], 2
call fcn.0040c120
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cc38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov byte [esp + 0x134], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cc5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov dword [esp + 0x134], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cc7f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x124]
call fcn.004185be
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ccb0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x433c51
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
mov eax, dword [0x4441e0]
push ebx
push esi
push edi
mov dword [esp + 0x124], eax
mov esi, ecx
call fcn.0040c660
test eax, eax
je 0x40cd15
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
stosb byte es:[edi], al
push 0x17
lea eax, [esp + 0x20]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x40cd1c
xor eax, eax
jmp 0x40ce8d
lea edi, [esp + 0x18]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40cd21
mov ecx, dword [0x43782c]
mov edx, dword [0x437830]
mov ax, word [0x437834]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [edi], ecx
push 0
lea ecx, [esp + 0x1c]
mov dword [edi + 4], edx
push ecx
mov word [edi + 8], ax
call ebx
lea edi, [esp + 0x18]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40cd58
mov edx, dword [0x437824]
mov eax, dword [0x437828]
push 0
lea ecx, [esp + 0x1c]
mov dword [edi], edx
push ecx
mov dword [edi + 4], eax
call ebx
call fcn.00426313
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 0x134], 0
call fcn.00426313
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
push 0x437860
push ecx
mov byte [esp + 0x140], 1
call fcn.00409e30
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
push eax
lea ecx, [esp + 0x20]
push str._swnwbwnwb.exe
push ecx
call fcn.00409e30
mov edx, dword [esi]
add esp, 0x18
push str.wnwb
add edx, 0xc
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00405dc0
mov eax, dword [eax]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
push eax
push 0x657
push 1
push 0x437710
push edi
push ebx
mov ecx, esi
mov byte [esp + 0x14c], 2
call fcn.0040c120
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ce41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov byte [esp + 0x134], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ce63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov dword [esp + 0x134], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ce88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x124]
call fcn.004185be
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d130
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x433c51
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
mov eax, dword [0x4441e0]
push ebx
push esi
push edi
mov dword [esp + 0x124], eax
mov esi, ecx
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
stosb byte es:[edi], al
push 0x10
lea eax, [esp + 0x20]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x40d29c
call fcn.00426313
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 0x134], 0
call fcn.00426313
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
push 0x437884
push ecx
mov byte [esp + 0x140], 1
call fcn.00409e30
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
push eax
lea ecx, [esp + 0x20]
push str._swniewnie.exe
push ecx
call fcn.00409e30
mov edx, dword [esi]
add esp, 0x18
push str.wnie
add edx, 0xc
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00405dc0
mov eax, dword [eax]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
push eax
push 0
push 1
push 0x4378a0
push edi
push ebx
mov ecx, esi
mov byte [esp + 0x14c], 2
call fcn.0040c120
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d255
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov byte [esp + 0x134], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d277
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov dword [esp + 0x134], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d29c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x124]
mov eax, 1
call fcn.004185be
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d2d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x433c51
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
mov eax, dword [0x4441e0]
push ebx
push esi
push edi
mov dword [esp + 0x124], eax
mov ebx, ecx
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
stosb byte es:[edi], al
push 0x1a
lea eax, [esp + 0x20]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x40d457
lea edi, [esp + 0x18]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40d335
mov ecx, 0xa
mov esi, str.MicrosoftInternet_ExplorerQuick_Launch
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.00426313
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 0x134], 0
call fcn.00426313
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
push 0x437884
push ecx
mov byte [esp + 0x140], 1
call fcn.00409e30
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
push eax
lea ecx, [esp + 0x20]
push str._swniewnie.exe
push ecx
call fcn.00409e30
mov edx, dword [ebx]
add esp, 0x18
push str.wnie
add edx, 0xc
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00405dc0
mov eax, dword [eax]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
push eax
push 0
push 1
push 0x4378a0
push esi
push edi
mov ecx, ebx
mov byte [esp + 0x14c], 2
call fcn.0040c120
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d410
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov byte [esp + 0x134], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d432
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov dword [esp + 0x134], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d457
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x124]
mov eax, 1
call fcn.004185be
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40df00
Capabilities:
Check if file exists
Create directory

Disassembly:
sub esp, 0x234
mov eax, dword [0x4441e0]
push edi
mov edi, dword [esp + 0x23c]
test edi, edi
mov dword [esp + 0x234], eax
mov dword [esp + 4], ecx
je 0x40e0ca
mov eax, dword [esp + 0x240]
test eax, eax
je 0x40e0ca
push ebp
lea eax, [esp + 0xc]
push eax
push 1
push 0x40d540
push 0x40d530
push 0x40d520
push 0x40d510
push 0x40d500
push 0x40d4f0
push 0x40d4e0
call sub.Cabinet.dll_FDICreate
mov ebp, eax
add esp, 0x24
test ebp, ebp
jne 0x40df85
pop ebp
pop edi
mov ecx, dword [esp + 0x230]
call fcn.004185be
add esp, 0x234
ret 0xc
push esi
push 0
push 0x8020
push edi
call fcn.00419883
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x40dfc0
push ebp
call sub.Cabinet.dll_FDIDestroy
add esp, 4
pop esi
pop ebp
xor eax, eax
pop edi
mov ecx, dword [esp + 0x230]
call fcn.004185be
add esp, 0x234
ret 0xc
lea ecx, [esp + 0x1c]
push ecx
push esi
push ebp
call sub.Cabinet.dll_FDIIsCabinet
add esp, 0xc
test eax, eax
jne 0x40dfe4
push esi
call fcn.00419e5a
push ebp
call sub.Cabinet.dll_FDIDestroy
add esp, 8
jmp 0x40dfa6
push ebx
push esi
call fcn.00419e5a
push 0x5c
push edi
call fcn.0041a190
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, eax
add esp, 0xc
test esi, esi
lea edx, [esp + 0x13c]
jne 0x40e01b
push edi
push edx
call ebx
push 0x435a07
lea eax, [esp + 0x3c]
push eax
call ebx
jmp 0x40e03b
lea ecx, [esi + 1]
push ecx
push edx
call ebx
sub esi, edi
lea eax, [esi + 1]
push eax
lea ecx, [esp + 0x3c]
push edi
push ecx
call fcn.0041a060
add esp, 0xc
mov byte [esp + esi + 0x39], 0
mov edx, dword [esp + 0x24c]
push edx
push 0x4453d8
call ebx
mov eax, dword [esp + 0x250]
test eax, eax
je 0x40e05d
push eax
push 0x4452d0
call ebx
push 0x4453d8
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
pop ebx
jne 0x40e079
push eax
push 0x4453d8
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
push ecx
push 0
push 0x40d550
push 0
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x14c]
push eax
push ebp
call sub.Cabinet.dll_FDICopy
add esp, 0x1c
cmp eax, 1
push ebp
jne 0x40df9e
call sub.Cabinet.dll_FDIDestroy
add esp, 4
pop esi
pop ebp
pop edi
mov ecx, dword [esp + 0x230]
call fcn.004185be
add esp, 0x234
ret 0xc
mov ecx, dword [esp + 0x234]
xor eax, eax
pop edi
call fcn.004185be
add esp, 0x234
ret 0xc

Function at 0x40e3b3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40e3c8
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40e3da
xor eax, eax
jmp 0x40e40c
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40e3fe
cmp esi, eax
jae 0x40e3d6
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40e3f0
cmp esi, eax
jae 0x40e3d6
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x40f6ee
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x40f741
call fcn.0042feba
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x40f741
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40f737
xor eax, eax
jmp 0x40f85a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x40f771
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x40f771
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x40f857
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x40f79e
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0040e5cf
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x40f857
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40f7e7
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x40f7e7
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x40f7e1
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0040e5cf
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x40f847
and dword [ebp + 0xc], 0
jmp 0x40f847
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x40f847
push 0xc
call fcn.0042b0d2
mov esi, eax
test esi, esi
pop ecx
je 0x40f829
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x40f82b
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40f842
push dword [ebp - 8]
call fcn.00425dfd
jmp 0x40f847
call fcn.00425dd4
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x40f7ac
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x418270
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00418550
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41830b
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4474a8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x41830b
cmp eax, 1
je 0x41832c
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41830b
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4182d8
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x418307
xor eax, eax
inc eax
jmp 0x41834b
cmp edi, eax
jae 0x41830f
xor eax, eax
jmp 0x41834b
cmp eax, esi
jae 0x418316
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4474a8]
jmp 0x41832f
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x419511
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x41952e
call fcn.0041b582
mov dword [eax], 0x16
xor eax, eax
jmp 0x419598
push esi
push 0x8c
push 1
call fcn.0041c117
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x419583
push esi
call fcn.0041dba6
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x419561
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x41947c
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x419597
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.004181ff
test ebx, ebx
pop ecx
je 0x419595
push ebx
call fcn.0041b594
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret