joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003a291
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1003a20d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1003a400
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1003a400
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1003a3b5
jg 0x1003a2ed
test eax, eax
je 0x1003a3ab
push 1
push 0x1000
call fcn.1002d140
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1003a310
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1003a3a2
push 0x8000
push ebx
call fcn.1003a13e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1003a339
jg 0x1003a334
cmp ecx, 0x1000
jb 0x1003a339
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1002c9e0
add esp, 0x10
cmp eax, 0xffffffff
je 0x1003a37e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1003a334
jl 0x1003a365
test ecx, ecx
jne 0x1003a326
push dword [ebp - 0xc]
push ebx
call fcn.1003a13e
push esi
call fcn.1002ab28
add esp, 0xc
xor ebx, ebx
jmp 0x1003a40e
cmp byte [edi + 0x24], 0
je 0x1003a395
cmp dword [edi + 0x20], 5
jne 0x1003a395
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1003a3a0
mov ebx, dword [edi + 0x18]
jmp 0x1003a3a2
xor ebx, ebx
push esi
call fcn.1002ab28
pop ecx
jmp 0x1003a40e
test ecx, ecx
jg 0x1003a377
jl 0x1003a3b5
test eax, eax
jae 0x1003a377
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1002ec20
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1003a3d5
cmp byte [edi + 0x1c], 0
je 0x1003a377
jmp 0x1003a406
push ebx
call fcn.100378e2
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1003a377
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1003a40e
cmp byte [edi + 0x1c], 0
je 0x1003a40b
mov ebx, dword [edi + 0x18]
jmp 0x1003a40e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1002ec20
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x401c66
pop dword [ebp - 0x18]
mov eax, 0x401c66
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xb1366e60
add dword [ebp - 0x28], 0x9d1bd6eb
mov dword [ebp - 0x24], 0x85cf379e
sub dword [ebp - 0x24], 0x539beb59
mov dword [ebp - 0x20], 0xa336f22f
add dword [ebp - 0x20], 0xa91551ff
mov dword [ebp - 0x1c], 0x5ad2dbbe
sub dword [ebp - 0x1c], 0x5ad2dbbe
lea eax, [ebp - 0x28]
push eax
mov eax, 0x7c1c1665
add eax, 0x842419ef
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xa560237a
add dword [ebp - 0x28], 0xcf1245dc
mov dword [ebp - 0x24], 0x9c90faf9
add dword [ebp - 0x24], 0xa4db667c
mov dword [ebp - 0x20], 0x1ec976bc
add dword [ebp - 0x20], 0x44a5f5b0
mov dword [ebp - 0x1c], 0x62c51f6e
sub dword [ebp - 0x1c], 0x62c51f6e
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x4133eff4
sub eax, 0x40f3bfc8
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x36f0e
push 0
call eax
mov ecx, 0x49d7
mov ebx, eax
mov edi, 0x6c6884c9
add edi, 0x93d7eb37
add edi, dword [ebp - 0x18]
mov edx, 0xfa33e77b
add edx, 0x2a5733d8
mov esi, dword [edi]
xor dword [ebp - 0x14], ecx
xor esi, edx
xor dword [ebp - 0x10], 0xe1ab2163
mov dword [ebx], esi
xor dword [ebp - 0x10], 0x9a53c30f
add ebx, 0xb314ea34
add ebx, 0x4ceb15d0
add edi, 0xd50f5f26
add edi, 0x2af0a0de
loop 0x401d7d
add eax, 0xc791f54c
add eax, 0x386f24e3
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.0040b1c2
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.0040b1c2
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.0040b1c2
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.0040b1c2
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.0040b1c2
mov dword [0x41203c], eax
call fcn.0040b1c2
test eax, eax
jge 0x402550
push 8
call fcn.0040b1c2
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.0040b1c2
pop ecx
push 1
call fcn.0040b1c2
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.0040b1c2
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.0040b1c2
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.0040b1c2
jmp 0x402495

Function at 0x40b1c2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x40b1d1
pop dword [ebp - 8]
mov eax, 0x11cc90cd
add eax, 0xee742104
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x3625b
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0xd05f71e5
add ecx, 0x2fa0c96d
xor edx, edx
add edx, eax
mov ebx, 0x53628d38
add ebx, 0xacdeae8c
add ebx, dword [ebp - 8]
mov esi, 0x32205ca7
sub esi, 0x1bfc9ac8
sub dword [ebp - 4], 0xf7f99798
mov edi, dword [ebx]
xor dword [ebp - 4], 0xbcf1e33a
add edi, esi
mov dword [ebp - 4], 0xfd48d3c
mov dword [edx], edi
sub dword [ebp - 4], 0x93a4f956
add edx, 0x6b813ad5
add edx, 0x947ec52f
add ebx, 0xe101a741
add ebx, 0x1efe58c3
loop 0x40b22d
add eax, 0x5ace2ece
add eax, 0xa532b14d
xor ebx, ebx
add ebx, eax
add eax, 0x249e22
sub eax, 0x249e1d
mov ecx, 0xf40ea1aa
sub ecx, 0xf3cea1aa
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x3ad7258d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3ad7a064]
jne 0x3ad72597
repz ret
jmp fcn.3ad73d0c

Function at 0x3ad74708
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x3ad74717
pop dword [ebp - 0x20]
mov eax, 0x32eab4e5
add eax, 0x7ec9232
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x36ddc
push 0
mov eax, 0xc4cc9574
sub eax, 0x89f584c0
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0xa593af12
add ecx, 0x5a6c95ed
mov ebx, eax
mov edx, 0x647680
add edx, 0x3a73d780
add edx, dword [ebp - 0x20]
mov edi, 0x11e0a89d
add edi, 0xc2763f4e
mov esi, dword [edx]
add dword [ebp - 8], 0x4a57102b
xor esi, edi
sub dword [ebp - 0x1c], ecx
mov dword [ebx], esi
sub dword [ebp - 0x14], 0xd20a84a7
add ebx, 0xc1a07b05
add ebx, 0x3e5f84ff
add edx, 0xf495a6fa
sub edx, 0xf495a6f6
loop 0x3ad74776
add eax, 0x70f87e8a
sub eax, 0x70f777bb
mov ebx, eax
add eax, 0x2353cbb
sub eax, 0x2353cb6
mov ecx, 0xb1e547dd
add ecx, 0x88f1b823
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x401580
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401599
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4015d4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4015d0
lea ebx, [ebx]
cmp esi, eax
jae 0x4015d4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4015c0
cmp esi, eax
jb 0x4015da
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x404110
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x42c278
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x439e3c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, ecx
push 0x400
mov dword [esp + 0x20], 2
call fcn.0041879b
mov ebx, dword [esp + 0x34]
mov ecx, dword [ebx - 8]
mov edi, dword [edi + 4]
mov esi, eax
mov eax, 1
sub eax, dword [ebx - 4]
add esp, 4
or ecx, eax
jge 0x404172
push 0
lea ecx, [esp + 0x34]
call fcn.00402680
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov eax, 1
sub eax, dword [ecx - 4]
mov ecx, dword [ecx - 8]
or ecx, eax
jge 0x404190
push 0
lea ecx, [esp + 0x2c]
call fcn.00402680
mov ebp, dword [esp + 0x24]
mov ecx, dword [ebp - 8]
mov eax, 1
sub eax, dword [ebp - 4]
or ecx, eax
jge 0x4041b2
push 0
lea ecx, [esp + 0x28]
call fcn.00402680
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push edi
push 0x400
push esi
push ebx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test esi, esi
mov edi, eax
jne 0x4041d0
xor eax, eax
jmp 0x4041e4
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4041d5
sub eax, edx
sar eax, 1
mov ecx, dword [esp + 0x2c]
push eax
push esi
call fcn.00402c70
push esi
call fcn.004186be
add esp, 4
test edi, edi
lea eax, [ebp - 0x10]
sete byte [esp + 0x24]
mov byte [esp + 0x1c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404220
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x1c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404245
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404269
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x40a460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, eax
and eax, 0xf
mov ebx, eax
lea eax, [esp + 0x10]
push edi
shr esi, 4
push eax
add esi, 1
call fcn.0040a3f0
add esp, 4
test al, al
jne 0x40a49f
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx ecx, ax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], ecx
call fcn.0040a3f0
add esp, 4
mov eax, dword [esp + 0x14]
push eax
movzx ecx, si
push ecx
push 6
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40a4e0
mov esi, eax
xor ecx, ecx
movzx eax, word [esi]
add esi, 2
test ax, ax
je 0x40a4d8
cmp ecx, ebx
movzx edi, ax
je 0x40a4e6
lea esi, [esi + edi*2]
add ecx, 1
cmp ecx, 0x10
jl 0x40a4c3
pop edi
pop esi
xor eax, eax
pop ebx
ret
xor ecx, ecx
lea ebx, [edi + 1]
mov eax, ebx
mov edx, 2
mul edx
seto cl
push ebp
neg ecx
or ecx, eax
push ecx
call fcn.0040a6d1
push edi
mov ebp, eax
push esi
push ebp
call fcn.00417e33
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
mov word [ebp + edi*2], 0
neg ecx
or ecx, eax
push ecx
call fcn.0040a6d1
push ebx
mov esi, eax
push ebp
push esi
call fcn.00417e33
push ebp
call fcn.0040a6d6
add esp, 0x24
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x40f801
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40f83a
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.00403bb0
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00403af0
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x411325
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 0x411368
call fcn.0040b66c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x411368
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x411383
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00410edf
test ebx, ebx
mov esi, eax
je 0x411381
test edi, edi
je 0x411381
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x412d34
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x439e3c]
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 - 0xc]
jne 0x412d71
push 0x430ab0
push 4
push eax
call fcn.004196be
push eax
call fcn.00401120
add esp, 0x10
jmp 0x412d83
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x412dee
push edi
call fcn.004197a0
mov edi, dword [eax]
call fcn.004197a0
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.00419746
add esp, 0x18
mov ebx, eax
call fcn.004197a0
cmp dword [eax], 0
je 0x412dce
call fcn.004197a0
push dword [eax]
call fcn.0040ad18
pop ecx
jmp 0x412dd5
call fcn.004197a0
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x412dee
cmp ebx, esi
jae 0x412dee
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x412df0
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041865d
leave
ret
Function at 0x4150f1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x42d911
call fcn.00419550
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.0040b66c
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x41513c
call fcn.0040b66c
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 0x41514d
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x41515a
or eax, 0xffffffff
jmp 0x4152b6
mov ecx, esi
call fcn.00414c38
mov dword [ebp - 0x14], eax
call fcn.0040e891
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x4151d8
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4151d8
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4151d8
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0040d411
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x4151d8
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x4151d8
mov ecx, ebx
call fcn.0040ab3f
test eax, eax
je 0x4151d8
push 0
mov ecx, ebx
call fcn.0040ab5a
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0041020b
push dword [ebp - 0x14]
call fcn.0040e7e9
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00414ef9
xor edi, edi
cmp eax, edi
je 0x415235
test byte [esi + 0x3c], 0x10
je 0x41521f
push 4
pop edi
mov ecx, esi
call fcn.0040aa17
test ax, 0x100
je 0x415215
push 5
pop edi
push edi
mov ecx, esi
call fcn.0040e37f
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x415235
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0040abc1
or dword [ebp - 4], 0xffffffff
jmp 0x415260
cmp dword [ebp - 0x28], edi
je 0x41526e
push 1
mov ecx, ebx
call fcn.0040ab5a
cmp dword [ebp - 0x2c], edi
je 0x41527e
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x415297
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x415297
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.00414c72
cmp dword [esi + 0x58], edi
je 0x4152b3
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.004195bc
ret
Function at 0x415b1f
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 0x415b4d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x415b6b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00415a89
jmp 0x415b6b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x415b6b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00415a89
test edi, edi
mov eax, edi
jne 0x415b55
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x43cef4]
test ecx, ecx
je 0x415c2e
jmp 0x415b1e
ret 8

Function at 0x41865d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x439e3c]
jne 0x418667
repz ret
jmp fcn.004202dc

Function at 0x41b9f5
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 + 0x439fd0]
je 0x41ba10
inc edi
cmp edi, 0x17
jb 0x41ba01
cmp edi, 0x17
jae 0x41bb90
push ebp
push 3
call fcn.004249d0
cmp eax, 1
pop ecx
je 0x41bb5c
push 3
call fcn.004249d0
test eax, eax
pop ecx
jne 0x41ba44
cmp dword [0x439e14], 1
je 0x41bb5c
cmp ebx, 0xfc
je 0x41bb8f
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x43d200
push ebp
call fcn.0042496b
add esp, 0xc
test eax, eax
je 0x41ba7a
push esi
push esi
push esi
push esi
push esi
call fcn.0041cf5f
add esp, 0x14
push 0x104
mov esi, 0x43d219
push esi
push 0
mov byte [0x43d31d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41babe
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0042496b
add esp, 0xc
test eax, eax
je 0x41babe
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041cf5f
add esp, 0x14
push esi
call fcn.004248e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41bb03
push esi
call fcn.004248e0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x43d514
push 0x431864
sub ecx, eax
push ecx
push eax
call fcn.00424820
add esp, 0x14
test eax, eax
je 0x41bb03
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0041cf5f
add esp, 0x14
jmp 0x41bb05
xor esi, esi
push 0x431860
push ebx
push ebp
call fcn.004247af
add esp, 0xc
test eax, eax
je 0x41bb25
push esi
push esi
push esi
push esi
push esi
call fcn.0041cf5f
add esp, 0x14
push dword [edi*8 + 0x439fd4]
push ebx
push ebp
call fcn.004247af
add esp, 0xc
test eax, eax
je 0x41bb47
push esi
push esi
push esi
push esi
push esi
call fcn.0041cf5f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004245f2
add esp, 0xc
jmp 0x41bb8f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x41bb8f
cmp ebp, 0xffffffff
je 0x41bb8f
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x439fd4]
push dword [esi]
call fcn.004248e0
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