joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b380
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x469f38
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x486668]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44]
cmp byte [0x48b310], 0
je 0x40b3cc
mov al, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4
mov eax, dword [ebp + 0xc8]
sub eax, 0x10
push eax
call fcn.00402cb0
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x44], esi
mov dword [esp + 0x3c], 0
mov ebx, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
lea edi, [ebx + 1]
sub eax, edi
or eax, ecx
jge 0x40b412
push edi
lea ecx, [esp + 0x48]
call fcn.004035e0
mov esi, dword [esp + 0x44]
test edi, edi
mov word [esi + ebx*2], 0
jl 0x40b4ae
cmp edi, dword [esi - 8]
jg 0x40b4ae
mov dword [esi - 0xc], edi
mov word [esi + edi*2], 0
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov word [esp + 0x30], ax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x20]
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], esi
mov word [esp + 0x28], 0x414
mov dword [esp + 0x32], 0x477ff0
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete bl
add esi, 0xfffffff0
mov dword [esp + 0x3c], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40b4a7
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov al, bl
jmp 0x40b3b6
push 0x80070057
call fcn.00402b50
int3

Function at 0x40d980
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x469810
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x486668]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
push esi
lea eax, [esp + 0x14]
push 0x4781dc
push eax
mov dword [esp + 0x1c], 0
call fcn.004073f0
mov edi, eax
lea ecx, [esp + 0x18]
push esi
push ecx
mov dword [esp + 0x30], 0
call fcn.0045a3d0
mov esi, dword [esp + 0x38]
push edi
push eax
push esi
mov byte [esp + 0x3c], 1
call fcn.00407a50
mov byte [esp + 0x3c], 0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x20
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40da0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40da37
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x40e010
Capabilities:
Get file attributes
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x46a450
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebp
push esi
push edi
mov eax, dword [0x486668]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
lea edi, [esp + 0x1c]
call fcn.0040dfa0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or edi, 0xffffffff
cmp eax, edi
je 0x40e059
test al, 0x10
je 0x40e06d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], 3
mov dword [ebx + 4], eax
jmp 0x40e1bf
push ebp
lea ecx, [esp + 0x18]
call fcn.00403710
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x38], 0
call fcn.0040eef0
add esp, 8
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e0b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x40e0d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], 3
mov dword [ebx + 4], eax
jmp 0x40e1a2
push ebp
lea ecx, [esp + 0x1c]
call fcn.00403710
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x38], 3
call fcn.0045b0a0
add esp, 8
mov byte [esp + 0x30], 4
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x40]
call fcn.0040b7a0
mov byte [esp + 0x30], 3
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e12e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e152
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00461970
mov edx, dword [esp + 0x38]
mov dword [edx + 4], eax
test eax, eax
mov eax, dword [esp + 0x3c]
mov edx, edi
jne 0x40e17c
mov dword [ebx], 1
mov dword [ebx + 4], 0xffffff99
jmp 0x40e189
mov dword [ebx], 0
mov dword [ebx + 4], 0
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e1a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x30], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40e1bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret 8
Function at 0x40eb70
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x30
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
jne 0x40eb9d
xor al, al
pop edi
pop esi
pop ebx
add esp, 0x30
ret
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x40ec0b
lea ecx, [esp + 0x18]
push ecx
push esi
shr esi, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x40ec0b
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x40ec0b
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
mov eax, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp eax, 1
sete bl
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0x30
ret
Function at 0x40f530
Capabilities:
Create directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x469d8b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x486668]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov eax, dword [0x486668]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
mov edx, dword [esp + 0x228]
test edx, edx
je 0x40f6cd
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f580
sub eax, esi
sar eax, 1
je 0x40f6cd
push ecx
mov ecx, esp
mov dword [esp + 0xc], esp
push edx
call fcn.00403710
lea eax, [esp + 0xc]
push eax
call fcn.0040f700
add esp, 8
mov dword [esp + 0x220], 0
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or esi, 0xffffffff
cmp eax, esi
je 0x40f630
test al, 0x10
je 0x40f5fb
mov dword [esp + 0x220], esi
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], esi
dec esi
test esi, esi
jg 0x40f5f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x40f6da
push 0x50
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esp + 0x220], esi
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x40f6d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40f6d8
push 0x206
lea ecx, [esp + 0x12]
push 0
push ecx
mov word [esp + 0x18], 0
call fcn.00431290
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.00430d85
lea ecx, [esp + 0x24]
push 0x5c
push ecx
call fcn.00430b21
add esp, 0x20
test eax, eax
je 0x40f6a1
lea edx, [esp + 0xc]
push edx
mov word [eax], 0
call fcn.0040f530
add esp, 4
test al, al
jne 0x40f690
lea ecx, [esp + 8]
call fcn.00407c70
jmp 0x40f6d8
mov eax, dword [esp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40f685
mov dword [esp + 0x220], esi
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x40f5f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x40f6da
push 0xa1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0042eddf
add esp, 0x21c
ret
Function at 0x40fbb0
Capabilities:
Get file size

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x14]
push eax
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
xor ecx, ecx
cmp edx, ecx
mov dword [esp + 0x10], eax
ja 0x40fbec
jb 0x40fbe0
cmp eax, ebx
jae 0x40fbec
mov eax, ebx
mov edx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x30]
push 0
push eax
push edx
push ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [esi + 8], eax
jne 0x40fc13
call fcn.0040fc90
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0x18
test ebx, ebx
mov edx, dword [esp + 0x28]
jne 0x40fc26
mov ecx, dword [esp + 0x10]
sub ecx, edx
mov dword [esi + 4], ecx
jmp 0x40fc29
mov dword [esi + 4], ebx
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x10], edx
mov edx, dword [esp + 0x2c]
push 0
mov dword [esi + 0x14], edx
mov edx, dword [esi + 4]
push edx
mov edx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0x14]
push edx
push ecx
push eax
mov dword [esi + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
test eax, eax
mov dword [esi], eax
jne 0x40fc79
call fcn.0040fc90
mov edi, eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0x18
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 0x18
Function at 0x413aa0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x466ef8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x486668]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [esi + 8]
sub eax, 0x10
push eax
call fcn.00402cb0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x14], eax
xor ebx, ebx
test byte [esi + 4], 2
mov dword [ebp - 4], ebx
je 0x413b4b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
and eax, 0xff
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
and eax, 0xff
push eax
lea eax, [ebp - 0x18]
push str.___02X:_02X_
push eax
call fcn.004073f0
add esp, 0x10
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00405820
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413b4b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test byte [esi + 4], 1
je 0x413bb5
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x1e]
movzx eax, word [ebp - 0x20]
movzx ecx, word [ebp - 0x22]
push edx
movzx edx, word [ebp - 0x24]
push eax
push ecx
push edx
lea eax, [ebp - 0x18]
push str.___02d:_02d:_02d:_03d_
push eax
call fcn.004073f0
add esp, 0x18
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00405820
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413bb5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 0xc], ebx
je 0x413bcc
push 2
push 0x46cd5c
lea ecx, [ebp - 0x14]
call fcn.00405820
mov edx, dword [ebp + 8]
cmp edx, ebx
jne 0x413bd7
xor eax, eax
jmp 0x413bef
mov eax, edx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x413be0
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x14]
call fcn.00405820
push 1
push 0x46cd58
lea ecx, [ebp - 0x14]
call fcn.00405820
cmp byte [esi], bl
je 0x413c16
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esi + 0x10], 0xffffffff
je 0x413c4b
cmp byte [ebp + 0xc], bl
jne 0x413c4b
push 0x46cd50
push 0x46cd58
lea ecx, [ebp - 0x14]
call fcn.00413600
mov edx, dword [ebp - 0x14]
mov eax, dword [edx - 0xc]
lea ecx, [esi + 0xc]
mov esi, dword [ecx]
add eax, eax
push eax
push edx
mov edx, dword [esi + 0x38]
mov byte [ebp - 4], 3
call edx
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413c71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x417522
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41755b
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004174e5
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004163a5
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x419039
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 0x41907c
call fcn.0041ba96
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41907c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x419097
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00418bf3
test ebx, ebx
mov esi, eax
je 0x419095
test edi, edi
je 0x419095
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x419823
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x467189
call fcn.0043157b
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.0041ba96
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x41986e
call fcn.0041ba96
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x41987f
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x41988c
or eax, 0xffffffff
jmp 0x4199e8
mov ecx, esi
call fcn.0041936a
mov dword [ebp - 0x14], eax
call fcn.00416554
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x41990a
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x41990a
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41990a
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.004150f0
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x41990a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x41990a
mov ecx, ebx
call fcn.00419cd2
test eax, eax
je 0x41990a
push 0
mov ecx, ebx
call fcn.00419ced
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00417f1f
push dword [ebp - 0x14]
call fcn.004164ac
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0041962b
xor edi, edi
cmp eax, edi
je 0x419967
test byte [esi + 0x3c], 0x10
je 0x419951
push 4
pop edi
mov ecx, esi
call fcn.00419bb9
test ax, 0x100
je 0x419947
push 5
pop edi
push edi
mov ecx, esi
call fcn.0041601d
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x419967
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00419ebc
or dword [ebp - 4], 0xffffffff
jmp 0x419992
cmp dword [ebp - 0x28], edi
je 0x4199a0
push 1
mov ecx, ebx
call fcn.00419ced
cmp dword [ebp - 0x2c], edi
je 0x4199b0
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4199c9
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x4199c9
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.004193a4
cmp dword [esi + 0x58], edi
je 0x4199e5
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00431620
ret
Function at 0x419a52
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x419a72
cmp dword [edi + 0x54], 0
jne 0x419a72
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041ba96
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00419a19
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x41bfc2
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x486668]
xor eax, ebp
mov dword [ebp + 0x1f0], eax
cmp dword [ebp + 0x200], 0x800
mov eax, dword [ebp + 0x1fc]
push esi
mov dword [ebp - 0x40], eax
mov esi, ecx
lea eax, [ebp + 0x1e8]
jne 0x41c060
push 0x46e2f4
push 4
push eax
call fcn.00430d85
push eax
call fcn.00402a60
add esp, 0x10
push ebx
push edi
call fcn.00430e2c
mov edi, dword [eax]
call fcn.00430e2c
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00431894
add esp, 0x18
mov dword [ebp - 0x40], eax
call fcn.00430e2c
cmp dword [eax], ebx
je 0x41c077
call fcn.00430e2c
push dword [eax]
call fcn.00413dc6
pop ecx
jmp 0x41c07e
push 4
push eax
push 3
push dword [ebp + 0x200]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x41c011
jmp 0x41c0f0
call fcn.00430e2c
mov dword [eax], edi
cmp dword [ebp - 0x40], 0xffffffff
je 0x41c0ec
cmp dword [ebp - 0x40], esi
jae 0x41c0ec
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.00431290
add esp, 0xc
push 0x46df28
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x41c0de
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x41c0de
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x41c0de
push ebx
push ebx
push esi
jmp 0x41c0e4
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x41c0ee
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x1f0]
xor ecx, ebp
pop esi
call fcn.0042eddf
add ebp, 0x1f4
leave
ret
Function at 0x41dc58
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 0x41dc9e
call fcn.0041ba96
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41dc9e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x41dce1
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 0x41dcca
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 0x41dcca
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x41dcde
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 0x41feb5
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x41febe
xor eax, eax
jmp 0x41ff27
cmp dword [esp + 8], 0
jne 0x41feca
call fcn.0041adcd
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.0043423d
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x41ff05
push dword [esi + 0x10]
call fcn.00433f43
test eax, eax
pop ecx
jne 0x41ff05
mov esi, dword [esi + 0xc]
call fcn.00430e3f
push esi
push dword [eax]
push 1
call fcn.00421568
push dword [esi + 0x10]
call fcn.00433f72
test eax, eax
pop ecx
je 0x41ff24
push dword [esi + 0x10]
call fcn.00433e92
push eax
call fcn.00402a60
pop ecx
pop ecx
jmp 0x41fef3
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x41ff30
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x41ff3a
call fcn.0041adcd
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.004343b7
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x41ff67
mov esi, dword [esi + 0xc]
call fcn.00430e3f
push esi
push dword [eax]
push 1
call fcn.00421568
pop esi
ret 8

Function at 0x42eddf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x486668]
jne 0x42ede9
repz ret
jmp fcn.00436e38