joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101cde5
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 8], eax
mov edi, 0xffff
mov esi, 0x80070000
test eax, eax
jne 0x101ce44
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test eax, eax
jle 0x101ce27
and eax, edi
or eax, esi
test eax, eax
jge 0x101ce37
call ebx
test eax, eax
jle 0x101ce33
and eax, edi
or eax, esi
mov ebx, eax
jmp 0x101ce3c
mov ebx, 0x80004005
test ebx, ebx
jl 0x101cf2c
push dword [ebp - 8]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
test eax, eax
jne 0x101ce67
mov ebx, 0x8007000e
jmp 0x101cf14
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x101cea5
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test eax, eax
jle 0x101ce8c
and eax, edi
or eax, esi
test eax, eax
jge 0x101ce9c
call ebx
test eax, eax
jle 0x101ce98
and eax, edi
or eax, esi
mov ebx, eax
jmp 0x101cea1
mov ebx, 0x80004005
test ebx, ebx
jl 0x101cf14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x1006104
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x101cee9
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test eax, eax
jle 0x101ced0
and eax, edi
or eax, esi
test eax, eax
jge 0x101cee0
call ebx
test eax, eax
jle 0x101cedc
and eax, edi
or eax, esi
mov ebx, eax
jmp 0x101cee5
mov ebx, 0x80004005
test ebx, ebx
jl 0x101cf14
mov eax, dword [ebp - 0xc]
mov cx, word [eax + 0xa]
mov edx, dword [ebp + 0xc]
mov word [edx], cx
mov cx, word [eax + 8]
mov edx, dword [ebp + 0x10]
mov word [edx], cx
mov cx, word [eax + 0xe]
mov edx, dword [ebp + 0x14]
mov word [edx], cx
mov ax, word [eax + 0xc]
mov ecx, dword [ebp + 0x18]
mov word [ecx], ax
cmp dword [ebp - 4], 0
je 0x101cf2c
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14
Function at 0x101d2a1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
mov ecx, eax
and ecx, 0xf
mov dword [ebp + 0xc], ecx
mov ecx, dword [esi]
push edi
test ecx, ecx
jne 0x101d2bf
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceExW]
shr eax, 4
inc eax
movzx ebx, ax
movzx eax, word [esi + 0xc]
push eax
push ebx
push 6
push ecx
call edi
test eax, eax
jne 0x101d2f3
mov eax, dword [esi]
test eax, eax
jne 0x101d2e4
mov eax, dword [esi + 4]
push 0x409
push ebx
push 6
push eax
call edi
test eax, eax
je 0x101d308
mov ecx, dword [esi]
test ecx, ecx
jne 0x101d2fc
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x101d334
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov edi, 0xffff
mov esi, 0x80070000
test eax, eax
jle 0x101d324
and eax, edi
or eax, esi
test eax, eax
jge 0x101d380
call ebx
test eax, eax
jle 0x101d330
and eax, edi
or eax, esi
mov esi, eax
jmp 0x101d3aa
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x101d308
mov eax, dword [ebp + 0xc]
test eax, eax
jbe 0x101d352
dec eax
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x101d348
movzx edi, word [esi]
push 0x1044eac
inc edi
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0101a694
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x101d387
mov esi, 0x8007000e
jmp 0x101d3aa
mov esi, 0x80004005
jmp 0x101d3aa
movzx eax, word [esi]
push eax
add esi, 2
push esi
push edi
push ebx
call fcn.0101d21e
mov esi, eax
test esi, esi
jge 0x101d3a5
push ebx
call fcn.01019ea8
pop ecx
jmp 0x101d3aa
mov eax, dword [ebp + 8]
mov dword [eax], ebx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x101dde4
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1028534]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp dword [0x1055338], edi
jne 0x101df00
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x101de4b
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call esi
mov eax, dword [ebp - 0x110]
dec eax
mov dword [0x1055338], edi
pop esi
je 0x101ded3
dec eax
jne 0x101df00
cmp dword [ebp - 0x11c], 5
jne 0x101dec0
mov eax, dword [ebp - 0x118]
sub eax, edi
je 0x101deb4
dec eax
je 0x101dea1
dec eax
je 0x101de87
mov dword [0x1055338], 0x14
jmp 0x101df00
cmp word [ebp - 0xc], 1
jb 0x101de98
mov dword [0x1055338], 0x10
or dword [0x1055338], 4
jmp 0x101df00
cmp word [ebp - 0xc], 2
jb 0x101de98
mov dword [0x1055338], 8
jmp 0x101de98
mov dword [0x1055338], 4
jmp 0x101df00
cmp dword [ebp - 0x11c], 4
ja 0x101df12
mov dword [0x1055338], 2
cmp dword [ebp - 0x11c], 4
jne 0x101df00
cmp dword [ebp - 0x118], edi
je 0x101def6
cmp dword [ebp - 0x118], 0xa
je 0x101def6
cmp dword [ebp - 0x118], 0x5a
jne 0x101df00
mov dword [0x1055338], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x1055338]
xor ecx, ebp
pop edi
call fcn.0101a463
leave
ret
mov dword [0x1055338], 0x20
jmp 0x101df00

Function at 0x101df23
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1028534]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 8
push 0x404
mov esi, 0xc04
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x101df77
push 3
lea eax, [ebp - 0x44]
push 0x1006930
push eax
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffff800
add esi, 0xc04
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.0101a463
leave
ret

Function at 0x101df8c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1028534]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp ax, word [0x105533c]
jne 0x101e027
push esi
lea eax, [ebp - 0x10]
push eax
push 1
xor esi, esi
push esi
push 0x1006860
push 0x80000002
mov dword [ebp - 0x14], 6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101e026
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x1006918
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x101e026
push 3
push dword [esi*8 + 0x10066b0]
lea eax, [ebp - 0xc]
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x101e018
inc esi
cmp esi, 0x1c
jb 0x101dff7
jmp 0x101e026
mov ax, word [esi*8 + 0x10066b4]
mov word [0x105533c], ax
pop esi
mov ecx, dword [ebp - 4]
mov ax, word [0x105533c]
xor ecx, ebp
call fcn.0101a463
leave
ret
Function at 0x101f6b2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
xor ebx, ebx
cmp eax, edi
je 0x101f721
xor ecx, ecx
cmp cx, word [eax]
je 0x101f721
push esi
push edi
push eax
call fcn.0101f4b0
mov esi, eax
test esi, esi
je 0x101f70d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x101f6f3
test al, 0x10
je 0x101f6ee
push 2
pop edi
jmp 0x101f6fb
xor ebx, ebx
inc ebx
jmp 0x101f6fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x101f715
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
pop esi
jmp 0x101f72b
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop ebx
pop ebp
ret 4

Function at 0x101f736
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
jne 0x101f758
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
leave
ret 0xc
push esi
cmp dword [ebp + 0xc], edi
je 0x101f789
lea ecx, [ebp - 4]
push ecx
push 0x20019
push edi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101f77b
cmp dword [ebp - 4], edi
jne 0x101f78c
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
jmp 0x101f753
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], edi
je 0x101f7aa
push edi
push edi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x101f7ad
xor esi, esi
inc esi
cmp dword [ebp + 0xc], edi
je 0x101f77d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x101f77d
Function at 0x44d4c0
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push edi
push esi
sub esp, 0x20
mov edi, dword [esp + 0x30]
cmp dword [edi + 4], 0
je 0x44d53a
lea ebx, [edi + 0xc]
mov dword [esp + 4], 0
lea eax, [esp + 4]
push 0
push eax
push 0
push ebx
call dword [sym.imp.kernel32.dll_InitOnceBeginInitialize]
cmp eax, 1
mov dword [esp], eax
jne 0x44d575
cmp dword [esp + 4], 0
je 0x44d55c
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x44d598
mov esi, eax
inc eax
mov dword [edi], eax
mov eax, dword [0x4a126c]
nop word [eax + eax]
mov dword [edi + 8], eax
lock cmpxchg dword [0x4a126c], edi
jne 0x44d520
push 0
push 0
push ebx
call dword [sym.imp.kernel32.dll_InitOnceComplete]
jmp 0x44d56c
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esp], eax
je 0x44d5df
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [edi], ecx
jne 0x44d560
mov esi, dword [esp]
jmp 0x44d56c
mov esi, dword [edi]
jmp 0x44d56b
mov esi, eax
push dword [esp]
call dword [sym.imp.kernel32.dll_TlsFree]
dec esi
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
ret
mov dword [esp + 8], 0
lea eax, [esp + 8]
mov ecx, esp
mov edx, 0x462c80
push 0x462cb4
push eax
call fcn.0044e1a0
add esp, 8
ud2
push 0
push 4
push ebx
call dword [sym.imp.kernel32.dll_InitOnceComplete]
mov dword [esp + 8], 0x462cd8
mov dword [esp + 0xc], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0x4613d0
mov dword [esp + 0x14], 0
lea eax, [esp + 8]
push 0x462ce0
push eax
call fcn.0044dc10
add esp, 8
ud2
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0x462cd8
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 0x4613d0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.0044e200
ud2
Function at 0x402274
Capabilities:
Delete directory

Disassembly:
push ebx
xor eax, eax
push eax
mov eax, dword [esp + 0xc]
mov dword [0x413ad0], eax
mov edx, dword [0x4135b0]
xor ecx, ecx
call fcn.0040f5a0
jne 0x4022b0
mov edx, dword [0x4135b0]
push dword [0x413ad0]
call fcn.0040f600
lea eax, [esp + 4]
push eax
call fcn.0040f520
jmp 0x40242c
push 0xc80001
push dword [0x4135ac]
push 0x6e
push 0xc8
push 0
push 0
push 0
call fcn.0040b03f
push dword [0x413530]
push 0x14
push 0x9e
push 0xf
push 0x15
push 1
call fcn.0040a243
push 0x20
push 0x41201e
push 0x14
push 0x9e
push 0x28
push 0x15
push 2
call fcn.0040a41c
push 0x41204e
push 0x14
push 0x4e
push 0x4b
push 0x3d
push 3
call fcn.0040a729
push 4
push 0xd
push 0
call fcn.0040b062
push 2
call fcn.0040a749
call fcn.0040b266
push eax
mov ebx, 0x333c
cmp ebx, dword [esp]
jne 0x402390
push dword [0x4135b8]
call sub.KERNEL32.DLL_RemoveDirectoryA
push 0
jmp 0x4017bc
mov ebx, 0x332d
cmp ebx, dword [esp]
jne 0x4023dc
call fcn.0040d67d
push eax
mov ebx, 4
cmp ebx, dword [esp]
jne 0x4023d9
push dword [0x413ad0]
push dword [0x413ad0]
push 2
call fcn.0040a784
lea eax, [esp + 0xc]
push eax
call fcn.0040f520
push 0
call fcn.0040ac02
add esp, 8
jmp 0x40242c
pop eax
jmp 0x402426
mov ebx, 0x332c
cmp ebx, dword [esp]
jne 0x402426
call fcn.0040d68c
push eax
mov ebx, 3
cmp ebx, dword [esp]
jne 0x402425
push dword [0x413ad0]
push dword [0x413ad0]
push 2
call fcn.0040a784
lea eax, [esp + 0xc]
push eax
call fcn.0040f520
push 0
call fcn.0040ac02
add esp, 8
jmp 0x40242c
pop eax
pop eax
jmp 0x402366
push dword [0x413ad0]
push dword [0x413ad0]
push dword [esp + 8]
call fcn.004052c0
push eax
mov eax, dword [esp + 0xc]
push eax
call fcn.0040dd70
inc dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x4134e8]
push dword [0x4134d4]
call fcn.0040c6f0
pop edx
pop ecx
mov dword [0x413ad0], ecx
add ecx, dword [0x412320]
add edx, dword [0x412320]
call fcn.0040f5a0
jne 0x4024b5
push 0x10
push dword [0x413594]
push dword [0x4135bc]
call fcn.004080d0
push dword [0x4135b8]
call sub.KERNEL32.DLL_RemoveDirectoryA
push 1
jmp 0x4017bc
mov edx, dword [esp]
push dword [0x413ad0]
call fcn.0040f600
pop eax
add eax, dword [0x412320]
jmp 0x4024da
push dword [esp]
call fcn.0040f5d0
add esp, 4
pop ebx
ret
Function at 0x402a04
Capabilities:
Get common file path

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x412035
push dword [0x413540]
call fcn.004033d5
and eax, eax
je 0x402b5a
push 0x400
call fcn.0040c6b0
mov dword [esp], eax
push dword [0x413ad0]
push dword [0x413ad0]
call fcn.0040c98d
lea eax, [esp + 8]
push eax
call fcn.0040f520
push dword [esp]
push 0
push 0x41201e
push dword [esp + 0x10]
call sub.KERNEL32.DLL_GetTempFileNameA
push dword [0x413ad0]
push dword [0x413ad0]
push dword [esp + 8]
call fcn.0040c760
lea eax, [0x4135b4]
push eax
call fcn.0040f520
push dword [esp]
call fcn.0040c7b0
push dword [0x4135b4]
call fcn.0040ca1c
push dword [0x4135b4]
call fcn.0040c917
push dword [0x4135b4]
call sub.SHLWAPI.DLL_PathAddBackslashA
mov edx, dword [0x4135b4]
push dword [0x413ad0]
call fcn.0040f600
mov edx, dword [0x41357c]
call fcn.0040f600
mov edx, dword [0x413550]
call fcn.0040f600
lea eax, [0x413544]
push eax
call fcn.0040f520
push dword [0x413544]
push 0
call fcn.0040ce10
push dword [0x4134e8]
push dword [0x4134d4]
push 0
call fcn.0040cf90
push 0
call fcn.0040cbf0
mov edx, dword [0x413544]
push dword [0x413ad0]
call fcn.0040f600
lea eax, [esp + 0xc]
push eax
call fcn.0040f520
push dword [esp + 8]
call sub.SHLWAPI.DLL_PathQuoteSpacesA
push dword [esp + 8]
push dword [0x413528]
call fcn.004085cd
push dword [0x413520]
push dword [0x41357c]
call fcn.004085cd
mov dword [0x4134e4], 1
xor eax, eax
push dword [esp + 4]
call fcn.0040f5d0
push dword [esp + 8]
call fcn.0040f5d0
add esp, 0xc
ret

Function at 0x402b72
Capabilities:
Delete directory

Disassembly:
xor eax, eax
push eax
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
call fcn.0040ca2a
inc dword [0x413ad0]
push dword [0x413588]
mov edx, dword [0x412320]
add dword [esp + 4], edx
call fcn.00408143
lea eax, [esp + 4]
push eax
call fcn.0040f520
mov edx, dword [esp]
xor ecx, ecx
call fcn.0040f5a0
jne 0x402c30
mov edx, dword [esp]
push dword [0x413ad0]
call fcn.0040f600
lea eax, [0x41354c]
push eax
call fcn.0040f520
push dword [0x41354c]
call fcn.0040ca6a
mov edx, dword [0x4134f8]
xor ecx, ecx
call fcn.0040f5a0
jne 0x402c02
push dword [0x4134f8]
call fcn.00402f9c
push dword [0x413558]
push 1
call fcn.0040ce10
and eax, eax
je 0x402c30
push dword [0x413554]
push 1
call fcn.0040cff0
push 1
call fcn.0040cbf0
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
call fcn.00408450
mov edx, dword [0x412320]
add dword [esp], edx
call fcn.0040ca7c
mov edx, dword [0x412320]
add dword [esp], edx
call fcn.0040ca6a
pop dword [0x413ad0]
push dword [0x4135b8]
call sub.KERNEL32.DLL_RemoveDirectoryA
push 0
jmp 0x4017bc
Function at 0x402d6c
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push 0x400
call fcn.0040c6b0
mov dword [esp], eax
push dword [0x413ad0]
push dword [0x413ad0]
call fcn.0040c98d
lea eax, [esp + 8]
push eax
call fcn.0040f520
push dword [esp]
push 0
push 0x41201e
push dword [esp + 0x10]
call sub.KERNEL32.DLL_GetTempFileNameA
push dword [0x413ad0]
push dword [0x413ad0]
push dword [esp + 8]
call fcn.0040c760
lea eax, [0x4135b8]
push eax
call fcn.0040f520
push dword [esp]
call fcn.0040c7b0
push dword [0x4135b8]
call fcn.0040ca1c
push dword [0x4135b8]
call fcn.0040c917
push dword [0x413ad0]
push dword [0x413ad0]
call fcn.0040ca2a
lea eax, [0x41354c]
push eax
call fcn.0040f520
push dword [esp + 0x14]
pop eax
call fcn.0040c6d0
push eax
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x402e45
mov edx, dword [0x4135b8]
push dword [0x413ad0]
call fcn.0040f600
lea eax, [0x41354c]
push eax
call fcn.0040f520
mov dword [esp + 0xc], 2
jmp 0x402e57
mov ebx, 1
cmp ebx, dword [esp]
jne 0x402e57
mov dword [esp + 0xc], 1
pop eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
push ebx
pop eax
call fcn.0040c6d0
mov dword [0x413580], eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
inc ebx
push ebx
pop eax
call fcn.0040c6d0
mov dword [0x4134d0], eax
mov eax, 1
jmp 0x402e8a
push dword [esp + 4]
call fcn.0040f5d0
add esp, 0xc
pop ebx
ret 4

Function at 0x402e9a
Capabilities:
Accept command line arguments

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
mov eax, dword [esp + 0x1c]
mov dword [0x413ad0], eax
push dword [0x413ad0]
push dword [0x413ad0]
call sub.KERNEL32.DLL_GetCommandLineA
push eax
call fcn.0040c760
lea eax, [esp + 4]
push eax
call fcn.0040f520
mov edx, dword [esp]
push dword [0x413ad0]
call fcn.0040f600
lea eax, [esp + 8]
push eax
call fcn.0040f520
mov eax, dword [esp + 4]
push eax
call sub.SHLWAPI.DLL_PathRemoveArgsA
mov dword [esp + 8], eax
push dword [esp + 4]
call fcn.004052c0
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
and ebx, ebx
jle 0x402f57
push dword [0x413ad0]
mov edx, str.__BFINOPSX
call fcn.0040f600
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
mov ebx, dword [esp + 0x20]
inc ebx
push ebx
push dword [esp + 0x18]
call fcn.004055a0
mov edx, dword [0x412320]
add dword [esp], edx
call fcn.00405190
pop eax
lea eax, [esp + 0x14]
push eax
call fcn.0040f520
mov edx, dword [esp + 0x10]
push dword [0x413ad0]
call fcn.0040f600
pop eax
add eax, dword [0x412320]
jmp 0x402f7d
push dword [esp + 4]
call fcn.0040f5d0
push dword [esp]
call fcn.0040f5d0
push dword [esp + 0x10]
call fcn.0040f5d0
add esp, 0x14
pop ebx
ret
Function at 0x4033a1
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4033a7
lea eax, [esp]
push eax
call sub.KERNEL32.DLL_GetNativeSystemInfo
lea ebp, [esp]
cmp word [ebp], 0
je 0x4033ce
mov eax, 1
jmp 0x4033d0
xor eax, eax
add esp, 0x24
pop ebp
ret

Function at 0x4033d5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4033db
mov edx, dword [esp + 0x30]
lea ecx, [esp]
call fcn.00405060
push 0x21
call fcn.0040c6b0
mov dword [esp + 4], eax
push 0x21
push dword [esp + 8]
call fcn.0040c7d0
push 0x20
push dword [esp + 8]
mov eax, dword [0x4135d0]
push eax
call fcn.0040c7f0
push 1
push dword [esp + 4]
mov ebx, dword [esp + 0xc]
add ebx, 0x20
push ebx
call fcn.0040c820
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push 0x21
push dword [esp + 0x18]
call fcn.0040dd70
mov edx, dword [0x412320]
add dword [esp], edx
call fcn.00405af0
lea eax, [esp + 0xc]
push eax
call fcn.0040f520
push dword [esp + 4]
call fcn.0040c7b0
push 0xa
push dword [esp + 0xc]
push dword [esp + 0x34]
call sub.KERNEL32.DLL_FindResourceA
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
je 0x4035c0
push dword [esp + 0xc]
push dword [esp + 0x30]
call sub.KERNEL32.DLL_LoadResource
mov dword [0x4134d4], eax
push dword [esp + 0xc]
push dword [esp + 0x30]
call sub.KERNEL32.DLL_SizeofResource
mov dword [0x4134e8], eax
push dword [esp]
mov edx, 0x412027
pop ecx
call fcn.0040f5a0
jne 0x403508
push dword [esp]
mov edx, 0x41202b
pop ecx
call fcn.0040f5a0
jne 0x403508
push dword [esp]
mov edx, 0x41202d
pop ecx
call fcn.0040f5a0
jne 0x403508
push dword [esp]
mov edx, 0x412035
pop ecx
call fcn.0040f5a0
jne 0x403508
jmp 0x40350f
mov eax, 1
jmp 0x403511
xor eax, eax
and eax, eax
je 0x4035c0
push dword [0x4134e8]
call fcn.0040c6b0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov ebx, dword [0x4134e8]
dec ebx
cmp ebx, dword [esp + 0x14]
jl 0x403576
mov ebx, dword [0x4134d4]
add ebx, dword [esp + 0x14]
push ebx
pop eax
call fcn.0040c6d0
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x18]
imul ebx, ebx, 0xffffffff
mov dword [esp + 0x1c], ebx
push dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 0x18]
push ebx
pop eax
call fcn.0040c6e0
inc dword [esp + 0x14]
jno 0x403530
push dword [0x4135d0]
push dword [0x4134e8]
push dword [esp + 0x18]
call fcn.00402000
push dword [esp + 0x10]
pop eax
mov dword [0x4134d4], eax
push dword [0x4134e8]
push dword [esp + 0x14]
call fcn.00404190
mov dword [esp + 0x20], eax
push dword [esp + 0x20]
pop eax
mov dword [0x4134d4], eax
push dword [esp + 0x20]
call fcn.0040c860
mov dword [0x4134e8], eax
mov eax, dword [esp + 0xc]
jmp 0x4035c8
push dword [esp + 8]
call fcn.0040f5d0
push dword [esp]
call fcn.0040f5d0
add esp, 0x24
pop ebx
ret 8
Function at 0x4035e0
Capabilities:
Get common file path

Disassembly:
xor eax, eax
push eax
push eax
push eax
push eax
push 0x400
call fcn.0040c6b0
mov dword [esp], eax
push dword [0x413ad0]
push dword [0x413ad0]
call fcn.0040c98d
lea eax, [esp + 8]
push eax
call fcn.0040f520
push dword [esp]
push 0
push 0x41201e
push dword [esp + 0x10]
call sub.KERNEL32.DLL_GetTempFileNameA
push dword [0x413ad0]
push dword [0x413ad0]
push dword [esp + 8]
call fcn.0040c760
lea eax, [0x4135c8]
push eax
call fcn.0040f520
push dword [0x413ad0]
push dword [0x413ad0]
push 0x800
call fcn.00405b50
lea eax, [esp + 0xc]
push eax
call fcn.0040f520
push dword [0x413ad0]
push 0x800
push dword [esp + 0x10]
push dword [0x413ad0]
push dword [0x413ad0]
call fcn.00408450
inc dword [0x413ad0]
mov edx, dword [0x412320]
add dword [esp], edx
call sub.KERNEL32.DLL_GetShortPathNameA
pop dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
call fcn.00408450
inc dword [0x413ad0]
push dword [0x4134f4]
mov edx, dword [0x412320]
add dword [esp + 4], edx
call fcn.004085cd
pop dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
call fcn.00408450
mov edx, dword [0x412320]
add dword [esp], edx
call fcn.0040cb9a
inc dword [0x413ad0]
push dword [0x413538]
mov edx, dword [0x412320]
add dword [esp + 4], edx
call fcn.004085cd
pop dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
call fcn.00408450
mov edx, dword [0x412320]
add dword [esp], edx
call fcn.0040ca7c
inc dword [0x413ad0]
push dword [0x4135c0]
mov edx, dword [0x412320]
add dword [esp + 4], edx
call fcn.004085cd
pop dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [esp + 0x14]
call fcn.00405190
inc dword [0x413ad0]
push dword [0x413500]
mov edx, dword [0x412320]
add dword [esp + 4], edx
call fcn.004085cd
pop dword [0x413ad0]
mov edx, dword [0x41354c]
push dword [0x413ad0]
call fcn.0040f600
lea eax, [esp + 0x10]
push eax
call fcn.0040f520
push dword [esp + 0xc]
call sub.SHLWAPI.DLL_PathAddBackslashA
push dword [esp + 0xc]
push dword [0x4135cc]
call fcn.004085cd
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
mov eax, dword [0x4134ec]
cdq
push edx
push eax
call fcn.00405860
inc dword [0x413ad0]
push dword [0x41358c]
mov edx, dword [0x412320]
add dword [esp + 4], edx
call fcn.004085cd
pop dword [0x413ad0]
push dword [0x4135c8]
push dword [0x41353c]
call fcn.004085cd
xor eax, eax
push dword [esp + 8]
call fcn.0040f5d0
push dword [esp + 4]
call fcn.0040f5d0
push dword [esp + 0xc]
call fcn.0040f5d0
add esp, 0x10
ret