joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407ef0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x41aec4]
sub esp, 0x14
push esi
xor esi, esi
cmp eax, esi
jne 0x407f56
mov eax, dword [0x41aec8]
mov ecx, eax
inc eax
mov dword [0x41aec8], eax
mov eax, dword [0x4140b4]
cmp ecx, eax
jge 0x407f4f
push 0x31
push 0x4142dc
push 0x4140b8
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
jne 0x407f4f
push 0x4142cc
push esi
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, esi
je 0x407f4f
push 0x203
push esi
push 0x511
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
pop esi
add esp, 0x14
ret
cmp dword [0x41aea8], esi
je 0x407f68
mov eax, 1
pop esi
add esp, 0x14
ret
push 0x30000
push esi
lea edx, [esp + 0xc]
push 0x407eb0
push edx
push 0xffffffffffffffff
push 0x41aea8
mov word [esp + 0x1c], 1
mov word [esp + 0x1e], 2
mov dword [esp + 0x20], 0x5622
mov word [esp + 0x28], 4
mov dword [esp + 0x24], 0x15888
mov word [esp + 0x2a], 0x10
mov word [esp + 0x2c], si
call dword [sym.imp.WINMM.dll_waveOutOpen]
test eax, eax
je 0x407fcc
push 0x4142ac
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
pop esi
add esp, 0x14
ret
mov dword [0x41aea0], esi
mov dword [0x41aea4], esi
mov dword [0x41aeb0], esi
mov dword [0x41aeb4], esi
mov dword [0x41ae9c], esi
call fcn.00407900
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x14
ret

Function at 0x408150
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40815d
mov eax, 0x80000002
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40817c
xor eax, eax
ret
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push esi
push eax
mov eax, dword [esp + 0x18]
push ecx
push 0
push 0
push edx
push eax
mov dword [esp + 0x28], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x14]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
ret
Function at 0x40ce30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x414538
cmp edx, dword [eax]
je 0x40ce52
add eax, 8
inc ecx
cmp eax, 0x4145c8
jl 0x40ce43
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x414538]
jne 0x40cf80
mov eax, dword [0x41ca2c]
cmp eax, 1
je 0x40cf5a
test eax, eax
jne 0x40ce83
cmp dword [0x4143c4], 1
je 0x40cf5a
cmp edx, 0xfc
je 0x40cf80
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40ceba
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040e610
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040e900
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40cefd
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040e900
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4126c8
push edi
call fcn.004101c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040e610
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040e620
lea eax, [ebp - 0xa0]
push 0x4126a8
push eax
call fcn.0040e620
push dword [esi + 0x41453c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040e620
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00410137
add esp, 0x2c
pop edi
jmp 0x40cf80
lea eax, [ebp + 8]
lea esi, [esi + 0x41453c]
push 0
push eax
push dword [esi]
call fcn.0040e900
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x24dd7348
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
test esi, esi
jne 0x24dd735d
xor eax, eax
jmp 0x24dd73d8
push edi
lea eax, [ebp - 0xc]
push 0xa
push eax
push 0x16
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jle 0x24dd7379
lea eax, [ebp - 0xc]
push eax
jmp 0x24dd737e
push section..data
call fcn.24dd9355
pop ecx
mov edi, eax
push edi
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push 2
test eax, eax
mov ax, word [esi]
pop edx
jbe 0x24dd73dc
test ax, ax
je 0x24dd73af
mov cx, word [edi]
cmp ax, cx
je 0x24dd73af
mov ax, word [esi + edx]
add esi, edx
test ax, ax
jne 0x24dd739f
cmp word [esi], 0
je 0x24dd73b7
add esi, edx
mov ax, word [esi]
test ax, ax
je 0x24dd73ca
cmp ax, 0x30
jne 0x24dd73ca
add esi, edx
inc ebx
jmp 0x24dd73b7
test edi, edi
je 0x24dd73d5
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
test ax, ax
je 0x24dd73af
cmp ax, 0x30
je 0x24dd73af
mov ax, word [esi + edx]
add esi, edx
jmp 0x24dd73dc
Function at 0x24ddb579
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push ebx
push esi
push edi
xor esi, esi
push dword [ebp + 0x10]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.24ddc545
test eax, eax
pop ecx
jne 0x24ddb5a5
push esi
push dword [ebp + 0x10]
call fcn.24ddbf4c
pop ecx
pop ecx
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x10]
call fcn.24ddb52e
pop ecx
test eax, eax
pop ecx
je 0x24ddb6cd
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x138]
push 0x24de57b8
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0xc]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x2001f
push esi
push 0x24de5ca8
lea eax, [ebp - 0x138]
push esi
push eax
push SysReAllocString
call ebx
cmp eax, esi
jne 0x24ddb6cd
cmp dword [ebp + 0xc], esi
jne 0x24ddb622
push dword [ebp + 8]
lea eax, [ebp - 0x138]
push 0x24de57c4
push eax
call edi
add esp, 0xc
jmp 0x24ddb632
push dword [ebp + 0xc]
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
lea eax, [ebp - 0x138]
push eax
push 1
push esi
push esi
push dword [ebp - 8]
call edi
cmp eax, esi
jne 0x24ddb6cd
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push 0x24de5cac
push esi
push 0x24de57d0
push dword [ebp - 8]
call ebx
cmp eax, esi
jne 0x24ddb6cd
lea eax, [ebp - 0x138]
push 0x104
push eax
push dword [0x24de5c24]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp eax, esi
je 0x24ddb6cd
inc eax
push eax
lea eax, [ebp - 0x138]
push eax
push 1
push esi
push esi
push dword [ebp - 4]
call edi
cmp eax, esi
jne 0x24ddb6cd
cmp dword [ebp + 0x14], esi
je 0x24ddb6eb
push 0xa
push str.Apartment
push 1
push esi
push 0x24de57ec
push dword [ebp - 4]
call edi
cmp eax, esi
je 0x24ddb6f9
cmp dword [ebp - 8], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x24ddb6dd
push dword [ebp - 8]
call edi
cmp dword [ebp - 4], esi
je 0x24ddb6e7
push dword [ebp - 4]
call edi
xor eax, eax
jmp 0x24ddb70c
push str.ThreadingModel
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x24dddd45
Capabilities:
Encode data using xor

Disassembly:
sti
and eax, 0xf4f7282d
adc dh, byte cs:[edi - 0x30]
int1
jmp 0xec84cefa
inc ebp
push 0x6c
iretd
mov word [esi + 0x5148b4c], es
push edi
sbb dword [esi - 0x7209a063], ebp
fidivr dword [esi]
mov ch, 0x4b
add eax, 0x3262067d
xor dl, byte [eax]
mov ah, byte [ebx]
mov word [ecx + 0x4a], es
xor dl, byte [eax]
mov ah, byte [ebx]
mov word [ecx + 0x4a], es
or bh, byte [edi + 0x4d]
mov dword [eax - 0x3f56f89c], eax
and edx, dword [edi + 0x48]
jnp 0x24dddd2f
adc bh, byte [eax + 0x4c]
cmp eax, 0x7462887c
jp 0x24dddd20
outsd dx, dword [esi]
clc
pop es
mov edx, dword [eax + 0x34c58bef]
fist dword [0x99a0522c]
jno 0x24dddcfe
insd dword es:[edi], dx
sti
stosd dword es:[edi], eax
je 0x24dddd80
xchg edx, eax
invalid
sbb byte [ecx], bl
clc
inc eax
jae 0x24dddd66
mov edx, 0x64dbd7e7
and al, 0xf7
jl 0x24ddddaa
and eax, 0x48d8ed08
sub dword [ecx], ecx
invalid
and edx, dword [0xb783de92]
xor esp, dword [ebp + 0x2f]
fiadd word [ebx + 0x2f6533b7]
jae 0x24dddda7
int3
Function at 0x4012e0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2ff4
call fcn.004066b0
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x10], edi
push edi
lea eax, [esp + 0x28]
push 0x4280d0
push eax
call fcn.004065fc
add esp, 0xc
lea ecx, [esp + 0x24]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401492
xor edx, edx
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0x8f4]
mov dword [esp + 0x18], edx
push ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x20], edx
push eax
lea ecx, [esp + 0x8fc]
mov dword [esp + 0x28], edx
push 0x2710
push ecx
lea edx, [esp + 0x28]
push 0xc
push edx
push 0x2d1400
push esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call ebp
test eax, eax
je 0x4013ed
mov eax, dword [esp + 0x90c]
lea ecx, [esp + eax + 0x8f4]
push ecx
call fcn.00401140
add esp, 4
lea edx, [esp + 0x50c]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
cmp cl, bl
jne 0x40139b
cmp byte [str.00000000000000000001], bl
jne 0x4013f3
movsx edx, byte [esp + 0x50c]
push edx
call fcn.00406676
add esp, 4
test eax, eax
jne 0x4013d7
movsx eax, byte [esp + 0x51f]
push eax
call fcn.00406676
add esp, 4
test eax, eax
je 0x4013f3
xor eax, eax
mov cl, byte [esp + eax + 0x50c]
mov byte [eax + str.00000000000000000001], cl
inc eax
cmp cl, bl
jne 0x4013d9
jmp 0x4013f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0x8f4]
push ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
lea edx, [esp + 0x8f8]
push ecx
push 0x2710
push edx
push ebx
push ebx
push 0x2d0c10
push esi
call ebp
test eax, eax
je 0x401481
xor eax, eax
mov cl, byte [esp + eax + 0x904]
mov byte [esp + eax + 0x124], cl
inc eax
cmp cl, bl
jne 0x401426
cmp byte [str.00000000000000000001], bl
jne 0x401487
movsx eax, byte [esp + 0x124]
push eax
call fcn.00406676
add esp, 4
test eax, eax
jne 0x40146b
movsx ecx, byte [esp + 0x137]
push ecx
call fcn.00406676
add esp, 4
test eax, eax
je 0x401487
xor eax, eax
mov cl, byte [esp + eax + 0x124]
mov byte [eax + str.00000000000000000001], cl
inc eax
cmp cl, bl
jne 0x40146d
jmp 0x401487
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x10]
inc edi
cmp edi, 4
mov dword [esp + 0x10], edi
jl 0x4012fc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2ff4
ret
Function at 0x401950
Capabilities:
Check os version

Disassembly:
sub esp, 0x18
xor eax, eax
lea ecx, [esp + 8]
mov dword [esp], eax
mov dword [esp + 4], eax
mov byte [esp + 8], al
mov dword [esp + 9], eax
mov dword [esp + 0xd], eax
push 0xd
push ecx
mov dword [esp + 0x19], eax
call fcn.00401870
test eax, eax
je 0x401944
lea edx, [esp]
lea eax, [esp + 8]
push edx
push 0x428168
push eax
call fcn.00406850
add esp, 0xc
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0x18
ret
sub esp, 0x94
push ebx
push ebp
push esi
xor ebx, ebx
xor esi, esi
xor ebp, ebp
push edi
xor eax, eax
mov cl, byte [eax + 0x42d3a0]
mov byte [eax + str.00000000000000000001], cl
inc eax
test cl, cl
jne 0x401962
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x20], 2
jne 0x4019b3
call section..text
test eax, eax
jne 0x4019cf
call fcn.00401610
test eax, eax
jne 0x4019cf
call fcn.004012e0
jmp 0x4019cf
xor edi, edi
test ebx, ebx
jne 0x4019cf
mov al, byte [str.00000000000000000001]
test al, al
jne 0x4019d6
call fcn.00401510
inc edi
mov ebx, eax
cmp edi, 0xa
jl 0x4019b5
mov al, byte [str.00000000000000000001]
test al, al
jle 0x401b23
mov edi, str.00000000000000000001
push 4
push 0x428170
push edi
call fcn.00406890
add esp, 0xc
test eax, eax
jne 0x4019fa
mov edi, 0x42cfa5
mov bl, byte [edi]
test bl, bl
je 0x401b0c
cmp bl, 0x2d
je case.0x401a33.48
push 0
push 0xa
push ebp
push esi
call fcn.004068d0
mov esi, eax
mov ebp, edx
movsx eax, bl
add eax, 0xffffffd0
cmp eax, 0x4a
ja case.0x401a33.48
xor ecx, ecx
mov cl, byte [eax + 0x401bc8]
jmp dword [ecx*4 + 0x401b34]
add esi, 1
jmp 0x401b02
add esi, 2
jmp 0x401b02
add esi, 3
jmp 0x401b02
add esi, 4
jmp 0x401b02
add esi, 5
jmp 0x401b02
add esi, 6
jmp 0x401b02
add esi, 7
jmp 0x401b02
add esi, 8
jmp 0x401b02
add esi, 9
jmp 0x401b02
add esi, 0xa
jmp 0x401b02
add esi, 0xb
jmp 0x401b02
add esi, 0xc
jmp 0x401b02
add esi, 0xd
jmp 0x401b02
add esi, 0xe
jmp 0x401b02
add esi, 0xf
jmp 0x401b02
add esi, 0x10
jmp 0x401b02
add esi, 0x11
jmp 0x401b02
add esi, 0x12
jmp 0x401b02
add esi, 0x13
jmp 0x401b02
add esi, 0x14
jmp 0x401b02
add esi, 0x15
jmp 0x401b02
add esi, 0x16
jmp 0x401b02
add esi, 0x17
jmp 0x401b02
add esi, 0x18
jmp 0x401b02
add esi, 0x19
jmp 0x401b02
add esi, 0x1a
jmp 0x401b02
add esi, 0x1b
jmp 0x401b02
add esi, 0x1c
jmp 0x401b02
add esi, 0x1d
jmp 0x401b02
add esi, 0x1e
jmp 0x401b02
add esi, 0x1f
jmp 0x401b02
add esi, 0x20
jmp 0x401b02
add esi, 0x21
jmp 0x401b02
add esi, 0x22
jmp 0x401b02
add esi, 0x23
adc ebp, 0
inc edi
jne 0x4019fa
test esi, esi
jne 0x401b14
test ebp, ebp
je 0x401b23
mov eax, esi
pop edi
mov edx, ebp
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
jmp 0x401900
Function at 0x403b30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41faa8
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.0041e22e
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x48]
and eax, 0xffff
push 0x4283a4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x403bc7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x403bc7
push 0
push ebx
push esi
lea ecx, [esp + 0x1c]
call fcn.0041cfb9
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 0
push ecx
mov ecx, ebp
call fcn.00403c90
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 0xffffffff
call fcn.0041cff5
mov eax, edi
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 4

Function at 0x40bb15
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x429c30
cmp edx, dword [eax]
je 0x40bb37
add eax, 8
inc ecx
cmp eax, 0x429cc0
jl 0x40bb28
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x429c30]
jne 0x40bc65
mov eax, dword [0x42f460]
cmp eax, 1
je 0x40bc3f
test eax, eax
jne 0x40bb68
cmp dword [0x429524], 1
je 0x40bc3f
cmp edx, 0xfc
je 0x40bc65
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40bb9f
lea eax, [ebp - 0x1a4]
push 0x423b98
push eax
call fcn.0040dac0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407e50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40bbe2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407e50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x423b94
push edi
call fcn.004066e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x423b78
push eax
call fcn.0040dac0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040dad0
lea eax, [ebp - 0xa0]
push 0x423b74
push eax
call fcn.0040dad0
push dword [esi + 0x429c34]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040dad0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x423b4c
push eax
call fcn.0040ed02
add esp, 0x2c
pop edi
jmp 0x40bc65
lea eax, [ebp + 8]
lea esi, [esi + 0x429c34]
push 0
push eax
push dword [esi]
call fcn.00407e50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x414270
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004066b0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41433b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41433b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4142ee
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4142f9
or bh, 8
and edi, 0x8000000
je 0x414314
mov eax, dword [0x430bfc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41433b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414710
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41473b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41475f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41477a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x417e00
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 0x417e42
call fcn.0041e22e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x417e42
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x417e39
xor eax, eax
jmp 0x417e4a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00417e50
pop edi
pop esi
pop ebx
ret 4

Function at 0x418b2b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x418b4d
cmp dword [edi + 0x3c], 0
jne 0x418b4d
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0041e22e
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00418b7a
pop edi
pop esi
pop ebx
ret 8

Function at 0x41ec7f
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 0x41ecad
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41eccb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041ebe5
jmp 0x41eccb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41eccb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041ebe5
test edi, edi
mov eax, edi
jne 0x41ecb5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8