joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5565ab
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5565e3
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00554595
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0055456d
jmp 0x5565ef
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x557c99
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x557cdb
call fcn.0055d9c7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x557cdb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x557cd2
xor eax, eax
jmp 0x557ce3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00557ce9
pop edi
pop esi
pop ebx
ret 4

Function at 0x55def7
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 0x55df25
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x55df43
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0055de5d
jmp 0x55df43
mov eax, dword [esi + 0x14]
test eax, eax
je 0x55df43
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0055de5d
test edi, edi
mov eax, edi
jne 0x55df2d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x6206206a
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push edi
push 0x32
pop eax
xor ebx, ebx
push eax
push ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
call esi
mov edi, eax
lea eax, [ebp - 8]
push eax
push 8
mov byte [ebp - 0x20], bl
mov byte [ebp - 0x1f], bl
mov byte [ebp - 0x1e], bl
mov byte [ebp - 0x1d], bl
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], 5
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x6206219c
cmp edi, ebx
je 0x6206219c
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x62062121
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x6206219c
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 4]
push ebx
call esi
mov edi, eax
cmp edi, ebx
je 0x6206219c
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x6206219c
mov esi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 4
push 1
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
je 0x6206219c
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 6
push 1
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
je 0x6206219c
cmp dword [edi], ebx
mov dword [ebp - 0x14], ebx
jbe 0x62062199
lea esi, [edi + 4]
mov eax, dword [esi]
push dword [ebp - 0xc]
mov ecx, dword [esi + 4]
push eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x6206219c
push dword [ebp - 0x10]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x62062199
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add esi, 8
cmp eax, dword [edi]
jb 0x62062163
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0xc], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_FreeSid]
je 0x620621ac
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 0x10], ebx
je 0x620621b6
push dword [ebp - 0x10]
call esi
cmp edi, ebx
je 0x620621c1
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], ebx
pop edi
pop esi
pop ebx
je 0x620621d2
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
leave
ret
Function at 0x62062210
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.620621ec
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
je 0x6206225c
push 0x105
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x62062251
xor ebx, ebx
jmp 0x62062305
lea eax, [ebp - 0x108]
mov dword [ebp + 8], eax
jmp 0x620622c7
cmp dword [ebp + 0xc], 0
je 0x620622c7
cmp dword [ebp + 8], edi
jne 0x620622c7
mov esi, 0x105
push esi
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x620622c7
lea eax, [ebp - 0x108]
push eax
call fcn.620621ec
and byte [eax], 0
mov ecx, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x62062292
sub ecx, edi
lea edx, [ebp - 0x108]
sub ecx, edx
add ecx, eax
cmp ecx, esi
jae 0x620622c7
push edi
push eax
call fcn.620621d7
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x620622c7
and dword [ebp + 8], 0
mov esi, dword [ebp + 8]
test esi, esi
je 0x62062305
cmp esi, edi
je 0x620622fc
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x20c]
push eax
call fcn.620621ec
and byte [eax], 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x620626fb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x620611d8
push 0x80000002
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x62062797
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ebx
cmp edi, ebx
mov dword [ebp + 8], 0x100
jne 0x62062748
push ebx
push ebx
jmp 0x62062755
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov byte [edi], bl
push edi
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call esi
inc dword [ebp - 4]
cmp eax, ebx
jne 0x6206278c
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x62062739
mov dword [ebp - 0xc], 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, dword [ebp - 0xc]
pop ebx
leave
ret 8

Function at 0x620627f1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xb0
push esi
xor esi, esi
cmp dword [0x6206a06c], esi
mov dword [ebp + 0x70], esi
mov dword [ebp + 0x74], esi
jne 0x62062922
push edi
call fcn.6206237f
cmp eax, 4
jbe 0x62062856
push 0x26
pop ecx
push 6
push 0x40
xor eax, eax
push esi
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
push esi
mov dword [ebp - 0x38], 0x9c
mov word [ebp + 0x60], 0x10
call sub.KERNEL32.dll_VerSetConditionMask
push edx
push eax
push 0x40
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
mov dword [0x6206a068], eax
jmp 0x62062909
call fcn.6206237f
cmp eax, 4
jne 0x62062909
lea eax, [ebp + 0x74]
push eax
push 0x62061234
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x62062909
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0x70]
push eax
push esi
lea eax, [ebp + 0x6c]
push eax
push esi
push 0x62061224
push dword [ebp + 0x74]
call ebx
test eax, eax
jne 0x62062908
cmp dword [ebp + 0x70], esi
jbe 0x62062908
push dword [ebp + 0x70]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp dword [ebp + 0x6c], 7
mov dword [ebp + 0x68], eax
jne 0x62062908
cmp eax, esi
je 0x62062908
mov ecx, dword [ebp + 0x70]
mov dword [ebp + 0x64], ecx
lea ecx, [ebp + 0x64]
push ecx
push eax
lea eax, [ebp + 0x6c]
push eax
push esi
push 0x62061224
push dword [ebp + 0x74]
call ebx
test eax, eax
jne 0x620628fb
push esi
push 0x62061214
push dword [ebp + 0x68]
call fcn.6206279f
neg eax
sbb eax, eax
neg eax
mov dword [0x6206a068], eax
push dword [ebp + 0x68]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
cmp dword [ebp + 0x74], esi
pop edi
je 0x62062918
push dword [ebp + 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x6206a06c], 1
mov eax, dword [0x6206a068]
pop esi
add ebp, 0x78
leave
ret
Function at 0x62062bf9
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
and byte [esi], 0
xor eax, eax
cmp dword [ebp + 0x10], eax
push edi
mov edi, 0x80000002
jne 0x62062cc4
push eax
push eax
call fcn.620626fb
test eax, eax
jne 0x62062cc4
lea eax, [ebp + 0xc]
push eax
push 0x20019
push 0
push 0x620612bc
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x62062ca7
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push 0
push 0x62061264
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x62062c9e
cmp dword [ebp + 8], 2
jne 0x62062c95
push 0x104
lea eax, [ebp - 0x190]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jbe 0x62062c9e
lea eax, [ebp - 0x190]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x62062c9e
cmp dword [ebp + 8], 1
je 0x62062c9e
and byte [esi], 0
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esi], 0
je 0x62062cc4
push 0x4000
lea eax, [ebp - 0x8c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
jne 0x62062cfb
push dword [ebp + 0x10]
push ebx
push esi
push 0x80000001
call fcn.6206292d
test eax, eax
jne 0x62062cfb
push dword [ebp + 0x10]
push ebx
push esi
push edi
call fcn.6206292d
test eax, eax
jne 0x62062cfb
cmp byte [esi], al
jne 0x62062cfb
mov eax, 0x620612d4
sub esi, eax
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x62062cf1
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x62062d08
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
mov edi, 0xf003f
push edi
push ebx
push ebx
push ebx
push 0x620612bc
push 0x80000002
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call esi
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x62062dd5
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push ebx
push ebx
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call esi
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x62062dd5
cmp dword [ebp - 0x10], 1
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
jne 0x62062d89
push dword [ebp + 8]
call edi
push eax
push dword [ebp + 8]
push 1
push ebx
push 0x6206119a
push dword [ebp - 4]
call esi
cmp dword [ebp + 0xc], ebx
je 0x62062da4
push dword [ebp + 0x14]
call edi
push eax
push dword [ebp + 0x14]
push 1
push ebx
push 0x62061270
push dword [ebp - 4]
call esi
cmp dword [ebp + 0x10], ebx
je 0x62062dbf
push dword [ebp + 0x14]
call edi
push eax
push dword [ebp + 0x14]
push 1
push ebx
push 0x62061264
push dword [ebp - 4]
call esi
push dword [ebp + 8]
call edi
push eax
push dword [ebp + 8]
push 1
push ebx
push 0x6206119a
push dword [ebp - 8]
call esi
cmp dword [ebp - 4], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x62062de5
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], ebx
je 0x62062def
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x62062df9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x620612ec
push 0x80000002
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
cmp edi, esi
jne 0x62062e38
push esi
push esi
push esi
push esi
push 0x620612e0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
cmp dword [ebp - 4], esi
je 0x62062e46
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, esi
pop edi
sete al
pop esi
leave
ret
Function at 0x62063372
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 8], eax
lea eax, [ebp + 8]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0x62063338
push 0
push 0
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x620633c1
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
leave
ret 0xc

Function at 0x620633c9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
cmp dword [0x6206a070], ebx
mov dword [ebp - 8], ebx
jne 0x620634ea
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push 0x620612bc
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x620634ea
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push 0x620613f8
push dword [ebp - 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call esi
test eax, eax
je 0x62063448
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push 0x620613e8
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x620634e0
mov dword [ebp - 0xc], 1
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x10], edi
je 0x620634df
cmp dword [ebp - 0xc], ebx
mov eax, 0x620613e8
jne 0x62063472
mov eax, 0x620613f8
lea ecx, [ebp - 4]
push ecx
push edi
lea ecx, [ebp - 0x14]
push ecx
push ebx
push eax
push dword [ebp - 8]
call esi
test eax, eax
jne 0x620634d0
cmp dword [ebp - 0x14], 1
jne 0x620634d0
cmp byte [edi], bl
je 0x620634d0
mov esi, edi
mov edi, dword [sym.imp.USER32.dll_CharNextA]
cmp byte [esi], 0x2a
je 0x620634a6
push esi
call edi
mov esi, eax
cmp byte [esi], bl
jne 0x62063498
cmp byte [esi], bl
je 0x620634b1
push esi
call edi
cmp byte [eax], bl
jne 0x620634b3
xor eax, eax
push 0x2000
push eax
push dword [ebp - 0x10]
mov byte [esi], bl
call fcn.62063372
mov edi, dword [ebp - 0x10]
mov dword [0x6206a070], 1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, dword [0x6206a070]
pop ebx
leave
ret
Function at 0x401250
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0
je 0x40126a
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x401271
xor eax, eax
jmp 0x40133e
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x401297
mov edx, dword [ebp - 0xc]
and edx, 0x10
xor eax, eax
cmp edx, 0x10
sete al
jmp 0x40133e
mov eax, dword [ebp + 8]
push eax
call fcn.0041241b
add esp, 4
mov dword [ebp - 8], eax
push 0x5c
mov ecx, dword [ebp - 8]
push ecx
call fcn.00401200
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4012cd
mov edx, dword [ebp - 8]
push edx
call fcn.0041238d
add esp, 4
xor eax, eax
jmp 0x40133e
mov eax, dword [ebp - 4]
mov byte [eax], 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.00401250
add esp, 4
test eax, eax
jne 0x4012f3
mov edx, dword [ebp - 8]
push edx
call fcn.0041238d
add esp, 4
xor eax, eax
jmp 0x40133e
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
jne 0x401319
mov eax, dword [ebp - 8]
push eax
call fcn.0041238d
add esp, 4
mov eax, 1
jmp 0x40133e
mov ecx, dword [ebp - 8]
push ecx
call fcn.0041238d
add esp, 4
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x401339
xor eax, eax
jmp 0x40133e
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x401a20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 0
je 0x401a4b
push 5
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x401a5a
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret 4
Function at 0x403d80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov byte [ebp - 9], 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403dba
xor eax, eax
jmp 0x403e44
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x403dd5
xor eax, eax
jmp 0x403e44
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x403e36
cmp dword [ebp + 0x14], 0
jne 0x403e07
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
mov byte [ebp - 9], 1
jmp 0x403e36
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 0x18]
cmp dword [edx], eax
jl 0x403e36
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.00413bd0
add esp, 0xc
mov byte [ebp - 9], 1
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
movzx eax, byte [ebp - 9]
mov esp, ebp
pop ebp
ret
Function at 0x4071c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe68
mov eax, dword [0x42e294]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xe68], ecx
mov eax, dword [ebp - 0xe68]
cmp dword [eax + 4], 0
jne 0x4071ec
xor al, al
jmp 0x407418
cmp dword [ebp + 8], 0
jne 0x4071fe
mov ecx, dword [ebp - 0xe68]
add ecx, 8
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004075c0
add esp, 4
movzx eax, al
test eax, eax
jne 0x407218
xor al, al
jmp 0x407418
lea ecx, [ebp - 0xa48]
push ecx
mov ecx, dword [ebp - 0xe68]
call fcn.00407070
movzx edx, byte [ebp - 0x818]
test edx, edx
je 0x407267
push 0
lea eax, [ebp - 0xa48]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
lea edx, [ebp - 0xc60]
push edx
call fcn.0041436a
add esp, 0x14
lea eax, [ebp - 0xc60]
push eax
call fcn.004075c0
add esp, 4
jmp 0x407418
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
je 0x4072b1
lea edx, [ebp - 0xe60]
push edx
lea eax, [ebp - 0xd60]
push eax
push 0
push 0
lea ecx, [ebp - 0xa48]
push ecx
call fcn.0041457c
add esp, 0x14
lea edx, [ebp - 0xe60]
push edx
lea eax, [ebp - 0xd60]
push eax
push 0
push 0
lea ecx, [ebp - 0xa48]
push ecx
call fcn.0041436a
add esp, 0x14
push 0
lea edx, [ebp - 0xa48]
push edx
mov eax, dword [ebp + 8]
push eax
push 0
lea ecx, [ebp - 0xb58]
push ecx
call fcn.0041436a
add esp, 0x14
lea edx, [ebp - 0xb58]
push edx
call fcn.004076b0
add esp, 4
movzx eax, al
test eax, eax
jne 0x4072ec
xor al, al
jmp 0x407418
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0xb58]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xa4c], eax
cmp dword [ebp - 0xa4c], 0xffffffff
jne 0x407321
xor al, al
jmp 0x407418
mov edx, dword [ebp - 0xe68]
mov eax, dword [edx + 4]
push eax
call fcn.0040f1c0
test eax, eax
je 0x407348
mov ecx, dword [ebp - 0xa4c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x407418
mov dword [ebp - 0x80c], 0
push 0x800
lea edx, [ebp - 0x808]
push edx
mov eax, dword [ebp - 0xe68]
mov ecx, dword [eax + 4]
push ecx
call fcn.0040eb30
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
jle 0x4073c8
mov dword [ebp - 0xe64], 0
push 0
lea edx, [ebp - 0xe64]
push edx
mov eax, dword [ebp - 0x80c]
push eax
lea ecx, [ebp - 0x808]
push ecx
mov edx, dword [ebp - 0xa4c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4073bc
mov eax, dword [ebp - 0xe64]
cmp eax, dword [ebp - 0x80c]
je 0x4073c8
mov dword [ebp - 0x80c], 0xffffffff
jmp 0x4073d1
cmp dword [ebp - 0x80c], 0
jg 0x407352
mov ecx, dword [ebp - 0xa4c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xe68]
mov eax, dword [edx + 4]
push eax
call fcn.0040ed30
cmp dword [ebp - 0x80c], 0
jne 0x40740c
mov ecx, dword [ebp - 0x830]
push ecx
lea edx, [ebp - 0xb58]
push edx
call fcn.00407710
add esp, 8
xor eax, eax
cmp dword [ebp - 0x80c], 0
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041234d
mov esp, ebp
pop ebp
ret 8