joyce8/EMBER2024-capa huggingface dataset:
Function at 0x15000
Capabilities:
Create device object
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x10
push esi
push edi
push eax
push str.08:28:08
push str.Oct_26_2015
push str._HookDriver__EasySys_Sample_Driver_r_n_HookDriver__Compiled__s__s_r_n_HookDriver__In_DriverEntry_:__wZ_r_n
call sub.ntoskrnl.exe_DbgPrint
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
add esp, 0x10
push str.DevicedevHookDriver
lea ecx, [ebp - 8]
push ecx
mov dword [esi + 0x38], 0x14000
mov dword [esi + 0x40], 0x14030
mov dword [esi + 0x70], 0x14060
mov dword [esi + 0x34], 0x141c0
call edi
lea edx, [ebp + 0xc]
push edx
push 0
push 0
push 0x22
lea eax, [ebp - 8]
push eax
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov esi, eax
test esi, esi
jge 0x15088
push esi
push str._HookDriver__Error__IoCreateDevice__0x_x_r_n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x10
push 1
call dword [sym.imp.ntoskrnl.exe_IoIsWdmVersionAvailable]
test al, al
je 0x150a1
push str.DosDevicesGlobalHookDriver
lea ecx, [ebp - 0x10]
push ecx
jmp 0x150aa
push str.DosDevicesHookDriver
lea edx, [ebp - 0x10]
push edx
call edi
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov esi, eax
test esi, esi
jge 0x150e2
push esi
push str._HookDriver__Error__IoCreateSymbolicLink__0x_x_r_n
call sub.ntoskrnl.exe_DbgPrint
mov edx, dword [ebp + 0xc]
add esp, 8
push edx
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
push str._HookDriver__DriverEntry_Success_r_n
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
push 0x11100
call dword [sym.imp.ntoskrnl.exe_PsSetLoadImageNotifyRoutine]
test eax, eax
jl 0x15112
push section..data
push 0
push section..text
call dword [sym.imp.ntoskrnl.exe_CmRegisterCallback]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x100096e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x10084280]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], 0xf4f3655
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
sub eax, 0x90f71820
je 0x10009829
jmp 0x1000971c
mov eax, dword [ebp - 0x28]
sub eax, 0xba8d92dc
je 0x10009894
jmp 0x1000972f
mov eax, dword [ebp - 0x28]
sub eax, 0xfddd3376
je 0x100098a6
jmp 0x10009742
mov eax, dword [ebp - 0x28]
sub eax, 0xf4f3655
je 0x1000976d
jmp 0x10009755
mov eax, dword [ebp - 0x28]
sub eax, 0x43a8faa5
je 0x100097b6
jmp 0x10009768
jmp 0x100098ad
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
not byte [edi]
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
add byte [edi], 0x64
sub byte [edi], 0x88
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
imul byte [edi]
inc edi
loop 0x10009789
mov dword [ebp - 0x1c], 0x43a8faa5
jmp 0x100098ad
mov ecx, dword [0x1008574c]
mov eax, dword [0x10085748]
mov edx, ecx
add edx, 0x8e416ff3
sub edx, 1
sub edx, 0x8e416ff3
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete bl
cmp eax, 0xa
setl dh
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 1
mov dl, al
and dl, 0xff
and bl, cl
mov ch, ah
and ch, 0xff
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 1
and al, cl
or dl, al
mov eax, 0xfddd3376
mov ecx, 0x90f71820
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x100098ad
mov ecx, dword [0x1008574c]
mov eax, dword [0x10085748]
xor esi, esi
sub esi, 1
mov edx, ecx
add edx, esi
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete bl
cmp eax, 0xa
setl dh
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 0
mov dl, al
and dl, 0
and bl, cl
mov ch, ah
and ch, 0
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 0
and al, cl
or dl, al
mov eax, 0xfddd3376
mov ecx, 0xba8d92dc
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x100098ad
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10023e50
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x1c], 0x90f71820
jmp 0x10009706
Function at 0x1000b4f0
Capabilities:
Allocate or change rwx memory
Create process on windows
Encode data using base64
Encrypt data using aes mixcolumns step
Encrypt data using speck
Execute anti-debugging instructions
Execute shellcode via indirect call
Hide graphical window
Parse credit card information
Parse pe header
Resume thread

Disassembly:
jmp 0x10019e55
xor eax, ebp
mov dword [ebp - 0x10], eax
movsx ax, cl
mov dword [ebp - 0x254], 0x19b546e8
bsr eax, edi
push ebp
clc
xor al, 0x99
movsx ax, dl
mov ebp, esp
push ebx
push edi
or ax, sp
rcl ah, cl
sub eax, 0x300965ac
push esi
lea esp, [esp - 0x24c]
mov al, al
mov eax, dword [0x10084280]
clc
jmp 0x10014e7f

Function at 0x10028e6a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10028ea9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10028ea9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10028ea9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10028ea9
cmp dword [ecx + 0x74], 0xe
jbe 0x10028ea9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1002b834
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1002b8d1
push ebx
push esi
call fcn.1002b7fd
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1002b791
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1002b87e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002b8d0
push edi
push eax
call fcn.1002a132
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1002b89e
call fcn.1002a180
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002b8cf
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1002b791
add esp, 0x20
test eax, eax
jne 0x1002b8bd
push edi
call fcn.1002a180
jmp 0x1002b8c5
push ebx
call fcn.1002a180
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1002bb3e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10034780
push 0x10034778
push str.FlsAlloc
push 0x1f
call fcn.1002ba5a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002bb72
push dword [ebp + 8]
mov ecx, esi
call dword [0x10032150]
call esi
jmp 0x1002bb78
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1002bbbc
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10034790
push 0x10034788
push str.FlsGetValue
push 0x21
call fcn.1002ba5a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002bbf3
push dword [ebp + 8]
mov ecx, esi
call dword [0x10032150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1002bbfb
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10034798
push 0x10034790
push str.FlsSetValue
push 0x22
call fcn.1002ba5a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002bc35
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10032150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10031140
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003116d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003116d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x438d30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2c000]
push edi
or ebp, 0xffffffff
jmp 0x438d52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x438d59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x438d48
mov eax, 1
add ebx, ebx
jne 0x438d6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x438d60
jne 0x438d7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x438d60
xor ecx, ecx
sub eax, 3
jb 0x438d90
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x438e02
mov ebp, eax
add ebx, ebx
jne 0x438d9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x438da8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x438dcc
inc ecx
add ebx, ebx
jne 0x438db8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x438dad
jne 0x438dc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x438dad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x438dec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x438ddd
jmp 0x438d4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x438dec
add edi, ecx
jmp 0x438d4e
pop esi
mov edi, esi
mov ecx, 0x572
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x438e0a
cmp byte [edi], 0xc
jne 0x438e0a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x438e0f
lea edi, [esi + 0x36000]
mov eax, dword [edi]
or eax, eax
je 0x438e7e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x38e5c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x38efc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x438e3c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x38f00]
or eax, eax
je 0x438e78
mov dword [ebx], eax
add ebx, 4
jmp 0x438e59
call dword [esi + 0x38f04]
popal
jmp 0x40ef82
Function at 0x401120
Capabilities:
Check mutex on windows

Disassembly:
push edi
push str._B_I_N_I_K_U_K_A_O_R_I_
push 0
push 0x1f0001
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x401144
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
ret
push esi
push str._B_I_N_I_K_U_K_A_O_R_I_
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40117c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401181
cmp eax, 0x80
je 0x401181
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
ret
mov dword [edi + 0xc0], esi
pop esi
mov eax, 1
pop edi
ret

Function at 0x401ed0
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0x450
mov eax, dword [0x431cc4]
xor eax, esp
mov dword [esp + 0x44c], eax
push edi
mov edi, dword [esp + 0x458]
push 0x428a34
push edi
lea eax, [esp + 0x14c]
push str._s_s
push eax
call fcn.0041394a
add esp, 0x10
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x148]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x402053
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x428a1c
lea eax, [esp + 0x14c]
push eax
lea ecx, [esp + 0x358]
push str._s_s
push ecx
call fcn.0041394a
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x10
lea edx, [esp + 0x350]
push edx
call esi
push 0x428a08
lea eax, [esp + 0x14c]
push eax
lea ecx, [esp + 0x358]
push str._s_s
push ecx
call fcn.0041394a
add esp, 0x10
lea edx, [esp + 0x350]
push edx
call esi
push 0x4289f0
lea eax, [esp + 0x14c]
push eax
lea ecx, [esp + 0x358]
push str._s_s
push ecx
call fcn.0041394a
add esp, 0x10
lea edx, [esp + 0x350]
push edx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea eax, [esp + 0x148]
push eax
call esi
mov eax, dword [0x428a3c]
mov ecx, dword [0x428a34]
mov edx, dword [0x428a38]
mov dword [esp + 0x254], eax
mov dword [esp + 0x24c], ecx
mov ecx, dword [0x428a40]
mov dword [esp + 0x250], edx
mov dx, word [0x428a44]
lea eax, [esp + 0x24c]
push 0x5c
push eax
mov dword [esp + 0x260], ecx
mov word [esp + 0x264], dx
call fcn.00413ee0
add esp, 8
test eax, eax
je 0x402052
mov byte [eax], 0
cmp byte [esp + 0x24c], 0
je 0x402052
lea ecx, [esp + 0x24c]
push ecx
push edi
lea edx, [esp + 0x150]
push str._s_s
push edx
call fcn.0041394a
add esp, 0x10
lea eax, [esp + 0x148]
push eax
call esi
pop esi
mov ecx, dword [esp + 0x450]
pop edi
xor ecx, esp
mov al, 1
call fcn.004132e0
add esp, 0x450
ret 4
Function at 0x402070
Capabilities:
Delete file

Disassembly:
sub esp, 0x144
mov eax, dword [0x431cc4]
xor eax, esp
mov dword [esp + 0x140], eax
push esi
mov esi, dword [esp + 0x14c]
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x4020b7
mov al, 1
pop esi
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.004132e0
add esp, 0x144
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x144]
test eax, eax
setne al
pop esi
xor ecx, esp
call fcn.004132e0
add esp, 0x144
ret 4

Function at 0x4020f0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
cmp dword [0x4331bc], 2
jne 0x402148
lea eax, [esp]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
mov dword [esp + 0x10], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
push 0
lea edx, [esp + 0x10]
push edx
push 0
push eax
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
xor eax, eax
add esp, 0x14
ret
Function at 0x405196
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x431cc4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x4051d6
push 0x4291e0
push 4
push eax
call fcn.004149ab
push eax
call fcn.00401000
add esp, 0x10
jmp 0x4051e8
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x405256
push edi
call fcn.0041436e
mov edi, dword [eax]
call fcn.0041436e
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.004139e1
add esp, 0x18
mov ebx, eax
call fcn.0041436e
cmp dword [eax], 0
je 0x405236
call fcn.0041436e
push dword [eax]
call fcn.00404884
pop ecx
jmp 0x40523d
call fcn.0041436e
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x405256
cmp ebx, esi
jae 0x405256
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x405258
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004132e0
leave
ret
Function at 0x40785a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x426751
call fcn.0041418f
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0040837f
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x4078a5
call fcn.0040837f
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x4078b6
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x4078c3
or eax, 0xffffffff
jmp 0x407a1f
mov ecx, esi
call fcn.0040738a
mov dword [ebp - 0x14], eax
call fcn.0040b441
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x407941
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x407941
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x407941
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00405167
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x407941
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x407941
mov ecx, ebx
call fcn.00408e15
test eax, eax
je 0x407941
push 0
mov ecx, ebx
call fcn.00408e30
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0040cda2
push dword [ebp - 0x14]
call fcn.0040b399
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00407662
xor edi, edi
cmp eax, edi
je 0x40799e
test byte [esi + 0x3c], 0x10
je 0x407988
push 4
pop edi
mov ecx, esi
call fcn.00408d7f
test ax, 0x100
je 0x40797e
push 5
pop edi
push edi
mov ecx, esi
call fcn.0040af2f
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x40799e
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00408e72
or dword [ebp - 4], 0xffffffff
jmp 0x4079c9
cmp dword [ebp - 0x28], edi
je 0x4079d7
push 1
mov ecx, ebx
call fcn.00408e30
cmp dword [ebp - 0x2c], edi
je 0x4079e7
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x407a00
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x407a00
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.004073c4
cmp dword [esi + 0x58], edi
je 0x407a1c
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.004141fb
ret
Function at 0x40debf
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 0x40df02
call fcn.0040837f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40df02
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40df1d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040da76
test ebx, ebx
mov esi, eax
je 0x40df1b
test edi, edi
je 0x40df1b
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40ef25
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 0x40ef53
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40ef71
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040ee8f
jmp 0x40ef71
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40ef71
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0040ee8f
test edi, edi
mov eax, edi
jne 0x40ef5b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x434d6c]
test ecx, ecx
je 0x40f034
jmp 0x40ef24
ret 8

Function at 0x4132e0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431cc4]
jne 0x4132ea
repz ret
jmp fcn.00418455
Function at 0x417ee3
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x431fb8]
je 0x417efe
inc edi
cmp edi, 0x17
jb 0x417eef
cmp edi, 0x17
jae 0x41807e
push ebp
push 3
call fcn.0041f90b
cmp eax, 1
pop ecx
je 0x41804a
push 3
call fcn.0041f90b
test eax, eax
pop ecx
jne 0x417f32
cmp dword [0x431ce0], 1
je 0x41804a
cmp ebx, 0xfc
je 0x41807d
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x435200
push ebp
call fcn.004149ab
add esp, 0xc
test eax, eax
je 0x417f68
push esi
push esi
push esi
push esi
push esi
call fcn.00413c20
add esp, 0x14
push 0x104
mov esi, 0x435219
push esi
push 0
mov byte [0x43531d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x417fac
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004149ab
add esp, 0xc
test eax, eax
je 0x417fac
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00413c20
add esp, 0x14
push esi
call fcn.00414250
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x417ff1
push esi
call fcn.00414250
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x435514
push 0x42ad94
sub ecx, eax
push ecx
push eax
call fcn.00416392
add esp, 0x14
test eax, eax
je 0x417ff1
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00413c20
add esp, 0x14
jmp 0x417ff3
xor esi, esi
push 0x42ad90
push ebx
push ebp
call fcn.00414a97
add esp, 0xc
test eax, eax
je 0x418013
push esi
push esi
push esi
push esi
push esi
call fcn.00413c20
add esp, 0x14
push dword [edi*8 + 0x431fbc]
push ebx
push ebp
call fcn.00414a97
add esp, 0xc
test eax, eax
je 0x418035
push esi
push esi
push esi
push esi
push esi
call fcn.00413c20
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041f74e
add esp, 0xc
jmp 0x41807d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x41807d
cmp ebp, 0xffffffff
je 0x41807d
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x431fbc]
push dword [esi]
call fcn.00414250
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret