joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4110a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x46aff0]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00434780
add esp, 0xc
mov edi, 0x104
lea ebx, [esp + 8]
call fcn.00410fb0
mov eax, ebx
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4110e3
mov edx, dword [str.SDSMAN.EXE]
mov ecx, dword [0x455d34]
mov dword [eax], edx
mov edx, dword [0x455d38]
mov dword [eax + 4], ecx
mov ecx, dword [0x455d3c]
mov dword [eax + 8], edx
mov edx, dword [0x455d40]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x455d44]
mov dword [eax + 0x10], edx
lea edx, [esp + 8]
push 0
push edx
mov dword [eax + 0x14], ecx
call fcn.00437ec5
add esp, 8
cmp eax, 0xffffffff
jne 0x411151
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00434664
add esp, 0x20c
ret
lea ebx, [esp + 8]
call fcn.00410fb0
mov edi, ebx
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x411160
push esi
lea eax, [esp + 0xc]
push 0
mov ecx, 7
mov esi, str.DSEDCO05.DLL
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00437ec5
add esp, 8
pop esi
cmp eax, 0xffffffff
je 0x411138
push 0x104
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 8]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4111a5
mov edx, dword [str.icoreg.sys]
mov ecx, dword [0x455d00]
mov dword [eax], edx
mov edx, dword [0x455d04]
mov dword [eax + 4], ecx
mov ecx, dword [0x455d08]
mov dword [eax + 8], edx
mov edx, dword [0x455d0c]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x455d10]
mov dword [eax + 0x10], edx
lea edx, [esp + 8]
push 0
push edx
mov dword [eax + 0x14], ecx
call fcn.00437ec5
xor ecx, ecx
add esp, 8
cmp eax, 0xffffffff
setne cl
pop edi
pop ebx
mov eax, ecx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00434664
add esp, 0x20c
ret
Function at 0x411c40
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
test eax, eax
je 0x411dbb
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SFC_SKEY_SecretKey_New
push eax
call edi
mov ecx, dword [esi]
push str.SFC_SKEY_SecretKey_Free
push ecx
mov dword [esi + 4], eax
call edi
mov edx, dword [esi]
push str.SFC_SKEY_SecretKey_FromBinary
push edx
mov dword [esi + 8], eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi]
push str.SFC_CIPHER_CTX_New
push eax
call edi
mov ecx, dword [esi]
push str.SFC_CIPHER_CTX_Free
push ecx
mov dword [esi + 0x10], eax
call edi
mov edx, dword [esi]
push str.SFC_Cipher_Encrypt_Init
push edx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi]
push str.SFC_Cipher_Encrypt_Update
push eax
call edi
mov ecx, dword [esi]
push str.SFC_Cipher_Encrypt_Final
push ecx
mov dword [esi + 0x1c], eax
call edi
mov edx, dword [esi]
push str.SFC_Cipher_Decrypt_Init
push edx
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x24], eax
mov eax, dword [esi]
push str.SFC_Cipher_Decrypt_Update
push eax
call edi
mov ecx, dword [esi]
push str.SFC_Cipher_Decrypt_Final
push ecx
mov dword [esi + 0x28], eax
call edi
mov edx, dword [esi]
push str.SFC_GetRandom
push edx
mov dword [esi + 0x2c], eax
call edi
mov dword [esi + 0x30], eax
mov eax, dword [esi]
push str.SFC_HASH_CTX_New
push eax
call edi
mov ecx, dword [esi]
push str.SFC_HASH_CTX_Free
push ecx
mov dword [esi + 0x34], eax
call edi
mov edx, dword [esi]
push str.SFC_Hash_Init
push edx
mov dword [esi + 0x38], eax
call edi
mov dword [esi + 0x3c], eax
mov eax, dword [esi]
push str.SFC_Hash_Update
push eax
call edi
mov dword [esi + 0x40], eax
mov ecx, dword [esi]
push str.SFC_Hash_Final
push ecx
call edi
mov edx, dword [esi]
push str.SFC_Hash
push edx
mov dword [esi + 0x44], eax
call edi
cmp dword [esi + 4], 0
mov dword [esi + 0x48], eax
pop edi
je 0x411dbb
cmp dword [esi + 8], 0
je 0x411dbb
cmp dword [esi + 0xc], 0
je 0x411dbb
cmp dword [esi + 0x10], 0
je 0x411dbb
cmp dword [esi + 0x14], 0
je 0x411dbb
cmp dword [esi + 0x18], 0
je 0x411dbb
cmp dword [esi + 0x1c], 0
je 0x411dbb
cmp dword [esi + 0x20], 0
je 0x411dbb
cmp dword [esi + 0x24], 0
je 0x411dbb
cmp dword [esi + 0x28], 0
je 0x411dbb
cmp dword [esi + 0x2c], 0
je 0x411dbb
cmp dword [esi + 0x30], 0
je 0x411dbb
cmp dword [esi + 0x34], 0
je 0x411dbb
cmp dword [esi + 0x38], 0
je 0x411dbb
cmp dword [esi + 0x3c], 0
je 0x411dbb
cmp dword [esi + 0x40], 0
je 0x411dbb
cmp dword [esi + 0x44], 0
je 0x411dbb
test eax, eax
je 0x411dbb
mov eax, 1
pop esi
ret 4
xor eax, eax
pop esi
ret 4
Function at 0x413450
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, edi
mov esi, ecx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413460
mov ecx, dword [esi + 0x10]
sub eax, edx
inc eax
push eax
mov eax, dword [esp + 0x10]
push edi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, edi
mov dword [esi + 4], eax
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x413487
sub ecx, edi
xor edx, edx
inc ecx
test eax, eax
sete dl
pop edi
mov dword [esi + 0xc], ecx
mov dword [esi + 8], 1
pop esi
mov eax, edx
ret 8

Function at 0x4134b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x8c
mov eax, dword [0x46aff0]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
mov ebx, dword [esp + 0x98]
push esi
push edi
mov edi, dword [esp + 0x9c]
push 0x80
lea eax, [esp + 0x18]
push 0
push eax
mov esi, ecx
mov dword [esp + 0x18], 0x80
call fcn.00434780
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [esi + 4], eax
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
test eax, eax
jne 0x41353a
push ecx
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00433e00
add esp, 0xc
mov eax, 1
jmp 0x41353c
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00434664
add esp, 0x8c
ret 0xc
Function at 0x413780
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x40
mov eax, dword [0x46aff0]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
mov ebx, dword [esp + 0x48]
push esi
mov esi, ecx
call fcn.00413730
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x41387e
cmp dword [esi + 4], eax
jne 0x4137cc
mov ecx, esi
call fcn.00413730
test eax, eax
jne 0x4137cc
mov eax, dword [esi + 0x14]
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00434664
add esp, 0x40
ret 4
xor eax, eax
push edi
mov edi, dword [esi + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x24], ax
mov dword [esi + 8], edi
lea eax, [edi + 0x1d8]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4137f8
mov dword [esi + 0x14], 0
test edi, edi
je 0x41387a
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 8]
movzx ecx, byte [eax + 0x199]
movzx edx, byte [eax + 0x198]
push ecx
movzx ecx, byte [eax + 0x197]
push edx
movzx edx, byte [eax + 0x196]
push ecx
movzx ecx, byte [eax + 0x195]
push edx
movzx edx, byte [eax + 0x194]
push ecx
push edx
lea eax, [esp + 0x24]
push str._02X__02X__02X__02X__02X__02X
push eax
call fcn.00435943
add esp, 0x20
lea ecx, [esp + 0xc]
push ecx
call edi
lea edx, [esp + 0xc]
push ebx
push edx
call fcn.00437a2f
add esp, 8
test eax, eax
je 0x413891
mov eax, dword [esi + 8]
mov ecx, dword [eax]
mov dword [esi + 8], ecx
test ecx, ecx
jne 0x413810
mov eax, dword [esi + 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00434664
add esp, 0x40
ret 4
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00434664
add esp, 0x40
ret 4
Function at 0x414520
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
ret

Function at 0x4146c0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x28
mov eax, dword [0x46aff0]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 0x144]
push ebx
push ebp
sub edx, 6
push esi
xor ebp, ebp
xor ebx, ebx
push edi
mov dword [esp + 0x10], eax
test edx, edx
jle 0x4146f7
mov esi, dword [esp + 0x40]
mov ecx, edx
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
test edx, edx
jle 0x414738
lea ecx, [ecx]
mov esi, dword [esp + 0x10]
cmp ebp, dword [esi + 0x144]
ja 0x414862
cmp eax, edx
jge 0x41472a
cmp ebx, 4
jge 0x41472d
mov edi, dword [esp + eax*4 + 0x14]
lea ecx, [ebx + ebp*4]
inc eax
inc ebx
cmp eax, edx
mov dword [esi + ecx*4 + 0x54], edi
jl 0x414714
cmp ebx, 4
jne 0x414732
inc ebp
xor ebx, ebx
cmp eax, edx
jl 0x414700
jmp 0x41473c
mov esi, dword [esp + 0x10]
cmp ebp, dword [esi + 0x144]
ja 0x414862
mov dword [esp + 0x10], 0x469868
movzx ecx, byte [esp + edx*4 + 0x11]
mov al, byte [esp + 0x14]
xor al, byte [ecx + str.cw]
mov byte [esp + 0x14], al
movzx ecx, byte [esp + edx*4 + 0x12]
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x15], cl
movzx ecx, byte [esp + edx*4 + 0x13]
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x16], cl
movzx ecx, byte [esp + edx*4 + 0x10]
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x17], cl
mov ecx, dword [esp + 0x10]
xor al, byte [ecx]
add ecx, 4
mov byte [esp + 0x14], al
mov dword [esp + 0x10], ecx
mov eax, 1
cmp edx, 8
je 0x4147c1
cmp edx, eax
jle 0x414822
mov ecx, dword [esp + eax*4 + 0x10]
xor dword [esp + eax*4 + 0x14], ecx
inc eax
cmp eax, edx
jl 0x4147b2
jmp 0x414822
mov ecx, dword [esp + eax*4 + 0x10]
xor dword [esp + eax*4 + 0x14], ecx
inc eax
cmp eax, 4
jl 0x4147c1
movzx eax, byte [esp + 0x20]
movzx ecx, byte [eax + str.cw]
movzx eax, byte [esp + 0x21]
xor byte [esp + 0x24], cl
movzx ecx, byte [eax + str.cw]
movzx eax, byte [esp + 0x22]
xor byte [esp + 0x25], cl
movzx ecx, byte [eax + str.cw]
movzx eax, byte [esp + 0x23]
xor byte [esp + 0x26], cl
movzx ecx, byte [eax + str.cw]
xor byte [esp + 0x27], cl
mov eax, 5
mov ecx, dword [esp + eax*4 + 0x10]
xor dword [esp + eax*4 + 0x14], ecx
inc eax
cmp eax, 8
jl 0x414814
xor eax, eax
test edx, edx
jle 0x414856
cmp ebp, dword [esi + 0x144]
ja 0x414862
cmp eax, edx
jge 0x41484a
cmp ebx, 4
jge 0x41484d
mov edi, dword [esp + eax*4 + 0x14]
lea ecx, [ebx + ebp*4]
inc eax
inc ebx
cmp eax, edx
mov dword [esi + ecx*4 + 0x54], edi
jl 0x414834
cmp ebx, 4
jne 0x414852
inc ebp
xor ebx, ebx
cmp eax, edx
jl 0x414828
cmp ebp, dword [esi + 0x144]
jbe 0x414750
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00434664
add esp, 0x28
ret
Function at 0x414880
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov ecx, 1
cmp dword [edx + 0x144], ecx
jbe 0x41496d
push esi
lea eax, [edx + 0x66]
push edi
lea ebx, [ebx]
movzx esi, byte [eax + 1]
mov esi, dword [esi*4 + 0x469468]
movzx edi, byte [eax - 1]
xor esi, dword [edi*4 + 0x468c68]
movzx edi, byte [eax]
xor esi, dword [edi*4 + 0x469068]
movzx edi, byte [eax - 2]
xor esi, dword [edi*4 + 0x468868]
inc ecx
mov dword [eax - 2], esi
movzx esi, byte [eax + 5]
mov esi, dword [esi*4 + 0x469468]
movzx edi, byte [eax + 4]
xor esi, dword [edi*4 + 0x469068]
movzx edi, byte [eax + 3]
xor esi, dword [edi*4 + 0x468c68]
movzx edi, byte [eax + 2]
xor esi, dword [edi*4 + 0x468868]
add eax, 0x10
mov dword [eax - 0xe], esi
movzx esi, byte [eax - 7]
mov esi, dword [esi*4 + 0x469468]
movzx edi, byte [eax - 8]
xor esi, dword [edi*4 + 0x469068]
movzx edi, byte [eax - 9]
xor esi, dword [edi*4 + 0x468c68]
movzx edi, byte [eax - 0xa]
xor esi, dword [edi*4 + 0x468868]
mov dword [eax - 0xa], esi
movzx esi, byte [eax - 3]
movzx edi, byte [eax - 4]
mov esi, dword [esi*4 + 0x469468]
xor esi, dword [edi*4 + 0x469068]
movzx edi, byte [eax - 5]
xor esi, dword [edi*4 + 0x468c68]
movzx edi, byte [eax - 6]
xor esi, dword [edi*4 + 0x468868]
mov dword [eax - 6], esi
cmp ecx, dword [edx + 0x144]
jb 0x4148a0
pop edi
pop esi
ret
Function at 0x415f60
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0xc]
sub eax, 0
je 0x415fa4
sub eax, 1
jne 0x415fc6
mov eax, dword [esi + 8]
push eax
push 1
lea ecx, [esp + 0x10]
push 1
push ecx
call fcn.004376ee
add esp, 0x10
test eax, eax
ja 0x415f9a
mov edx, dword [esp + 0xc]
mov dword [edx], 0xffffffff
or eax, 0xffffffff
pop esi
ret
inc dword [esi + 0x10]
movsx eax, byte [esp + 8]
pop esi
ret
mov ecx, dword [esi + 0x10]
cmp ecx, dword [esi]
jl 0x415fb9
mov eax, dword [esp + 0xc]
mov dword [eax], 0xffffffff
xor eax, eax
pop esi
ret
mov edx, dword [esi + 4]
movsx eax, byte [edx + ecx]
inc ecx
mov dword [esi + 0x10], ecx
pop esi
ret
mov eax, dword [esp + 8]
pop esi
ret

Function at 0x415fd0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0xc]
sub eax, 0
je 0x416001
sub eax, 1
jne 0x416019
mov eax, dword [esi + 8]
push eax
push 1
lea ecx, [esp + 0x14]
push 1
push ecx
call fcn.0043786d
add esp, 0x10
inc dword [esi + 0x10]
mov eax, 1
pop esi
ret
mov eax, dword [esi + 0x10]
cmp eax, dword [esi]
jl 0x41600c
xor eax, eax
pop esi
ret
mov edx, dword [esi + 4]
mov cl, byte [esp + 0xc]
mov byte [eax + edx], cl
inc dword [esi + 0x10]
mov eax, 1
pop esi
ret
Function at 0x416100
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
push edi
call fcn.00415f30
xor ebp, ebp
add esp, 4
mov dword [esp + 0x18], ebp
xor esi, esi
lea esp, [esp]
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*2]
mov ecx, eax
mov eax, esi
sub eax, ecx
mov dword [esp + 0x1c], eax
jmp 0x416140
cmp eax, ebp
jne 0x41615e
lea edx, [esp + 0x14]
push edx
push edi
mov dword [esp + 0x1c], ebp
call fcn.00415f60
mov ebx, eax
mov eax, dword [esp + 0x24]
add esp, 8
jmp 0x416162
mov ebx, dword [esp + 0x18]
cmp ebx, 0xd
je 0x416140
cmp ebx, 0xa
je 0x416140
cmp dword [esp + 0x14], 0xffffffff
je 0x416294
lea eax, [esp + 0x14]
push eax
push edi
mov dword [esp + 0x1c], ebp
call fcn.00415f60
mov edx, eax
add esp, 8
mov dword [esp + 0x18], edx
cmp edx, 0x3d
je 0x416294
cmp edx, 0xd
je 0x416177
cmp edx, 0xa
je 0x416177
cmp dword [esp + 0x14], 0xffffffff
je 0x416294
cmp bl, 0x41
jb 0x4161bf
cmp bl, 0x5a
ja 0x4161bf
movzx eax, bl
sub eax, 0x41
jmp 0x416208
cmp bl, 0x61
jb 0x4161d1
cmp bl, 0x7a
ja 0x4161d1
movzx eax, bl
sub eax, 0x47
jmp 0x416208
cmp bl, 0x30
jb 0x4161e3
cmp bl, 0x39
ja 0x4161e3
movzx eax, bl
add eax, 4
jmp 0x416208
cmp bl, 0x2a
jne 0x4161ef
mov eax, 0x3e
jmp 0x416208
cmp bl, 0x2f
jne 0x4161fb
mov eax, 0x3f
jmp 0x416208
xor eax, eax
cmp bl, 0x3d
setne al
dec eax
and eax, 0x41
dec eax
mov ebx, dword [esp + 0x1c]
lea ecx, [ebx + ebx + 2]
shl al, cl
mov byte [esp + 0x13], al
cmp dl, 0x41
jb 0x416228
cmp dl, 0x5a
ja 0x416228
movzx eax, dl
sub eax, 0x41
jmp 0x416271
cmp dl, 0x61
jb 0x41623a
cmp dl, 0x7a
ja 0x41623a
movzx eax, dl
sub eax, 0x47
jmp 0x416271
cmp dl, 0x30
jb 0x41624c
cmp dl, 0x39
ja 0x41624c
movzx eax, dl
add eax, 4
jmp 0x416271
cmp dl, 0x2a
jne 0x416258
mov eax, 0x3e
jmp 0x416271
cmp dl, 0x2f
jne 0x416264
mov eax, 0x3f
jmp 0x416271
xor eax, eax
cmp dl, 0x3d
setne al
dec eax
and eax, 0x41
dec eax
mov edx, dword [esp + 0x24]
mov cl, 2
sub cl, bl
add cl, cl
shr al, cl
or al, byte [esp + 0x13]
movzx ecx, al
push ecx
push edx
call fcn.00415fd0
add esp, 8
inc esi
jmp 0x416120
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret

Function at 0x419ba0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x419bc4
cmp dword [edi + 0x54], 0
jne 0x419bc4
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041fd4e
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 [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00419b61
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x41f327
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41f36e
call fcn.0041fd4e
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41f36e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41f38a
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041ee9f
mov esi, eax
test edi, edi
je 0x41f388
test ebx, ebx
je 0x41f388
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x420c19
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x44b46e
call fcn.00434673
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x420c3e
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x420c84
lea ecx, [ebp - 0x10]
call fcn.004175a7
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00416fb1
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004026da
mov eax, esi
call fcn.0043474b
ret 8
Function at 0x4222f8
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x46aff0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x422390
push 0x457a34
push 4
push eax
call fcn.00437dcd
push eax
call fcn.004025f1
add esp, 0x10
push ebx
push edi
call fcn.00438a9e
mov edi, dword [eax]
call fcn.00438a9e
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00435490
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.00438a9e
cmp dword [eax], ebx
je 0x4223a7
call fcn.00438a9e
push dword [eax]
call fcn.00418bd9
pop ecx
jmp 0x4223ae
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x42233b
jmp 0x422435
call fcn.00438a9e
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x422431
cmp dword [ebp - 0x234], esi
jae 0x422431
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.00434780
add esp, 0xc
push 0x457120
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x422420
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x422420
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x422420
push ebx
push ebx
push esi
jmp 0x422429
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x422433
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00434664
leave
ret

Function at 0x423e82
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x423eca
call fcn.0041fd4e
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x423eca
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x423f0d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x423ef6
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 0x423ef6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x423f0a
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 0x434664
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46aff0]
jne 0x43466e
repz ret
jmp fcn.0043cb8c
Function at 0x437e3c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x437e6d
call fcn.00438ab1
mov dword [eax], esi
call fcn.00438a9e
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00435635
add esp, 0x14
push 0x16
pop eax
jmp 0x437ec2
test dword [ebp + 0xc], 0xfffffff9
jne 0x437e49
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x437e9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00438ac4
pop ecx
call fcn.00438a9e
mov eax, dword [eax]
jmp 0x437ec2
test al, 0x10
jne 0x437ec0
test al, 1
je 0x437ec0
test byte [ebp + 0xc], 2
je 0x437ec0
call fcn.00438ab1
mov dword [eax], 5
call fcn.00438a9e
mov dword [eax], 0xd
jmp 0x437e91
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4447da
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0043a929
and dword [ebp - 4], 0
cmp dword [0x471918], 0
mov ebx, eax
jne 0x44488b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x44493c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x459e80
push edi
call esi
test eax, eax
je 0x44493c
push eax
call fcn.0043a8b7
mov dword [esp], 0x459e70
push edi
mov dword [0x471918], eax
call esi
push eax
call fcn.0043a8b7
mov dword [esp], 0x459e5c
push edi
mov dword [0x47191c], eax
call esi
push eax
call fcn.0043a8b7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x471920], eax
call esi
push eax
call fcn.0043a8b7
pop ecx
mov dword [0x471928], eax
test eax, eax
je 0x44488b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043a8b7
pop ecx
mov dword [0x471924], eax
mov eax, dword [0x471924]
cmp eax, ebx
je 0x4448e3
cmp dword [0x471928], ebx
je 0x4448e3
push eax
call fcn.0043a932
push dword [0x471928]
mov esi, eax
call fcn.0043a932
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4448e3
test edi, edi
je 0x4448e3
call esi
test eax, eax
je 0x4448da
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4448da
test byte [ebp - 0xc], 1
jne 0x4448e3
or dword [ebp + 0x10], 0x200000
jmp 0x44491c
mov eax, dword [0x47191c]
cmp eax, ebx
je 0x44491c
push eax
call fcn.0043a932
pop ecx
test eax, eax
je 0x44491c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x44491c
mov eax, dword [0x471920]
cmp eax, ebx
je 0x44491c
push eax
call fcn.0043a932
pop ecx
test eax, eax
je 0x44491c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x471918]
call fcn.0043a932
pop ecx
test eax, eax
je 0x44493c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44493e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret