joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4030e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x41f298
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x3c]
call fcn.0040b550
lea eax, [esp + 0x1c]
xor edi, edi
push eax
push 0x20019
push edi
push str.SYSTEMCurrentControlSetControlDeviceClasses
push 0x80000002
lea ecx, [esp + 0x50]
mov dword [esp + 0x84], edi
xor ebp, ebp
xor esi, esi
call fcn.0040b9e0
test eax, eax
je 0x40325e
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
lea ecx, [esp + 0x14]
lea edx, [esp + 0x34]
push ecx
push edx
mov edx, dword [esp + 0x20]
push edi
push edi
lea eax, [esp + 0x3c]
push edi
lea ecx, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
mov ecx, ebx
call fcn.00402bb0
test eax, eax
je 0x403250
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
push 0x20019
push edi
push edx
push eax
lea ecx, [esp + 0x50]
call fcn.0040b9e0
test eax, eax
je 0x403229
test esi, esi
mov dword [esp + 0x10], edi
jne 0x403219
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
push ecx
push edx
mov edx, dword [esp + 0x2c]
push 0
push 0
lea eax, [esp + 0x40]
push 0
lea ecx, [esp + 0x34]
push eax
push ecx
push edi
push edx
mov ecx, ebx
call fcn.00402bb0
test eax, eax
je 0x403219
mov eax, dword [esp + 0x20]
push eax
call fcn.004037c0
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00402a90
add esp, 8
test eax, eax
je 0x4031fe
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
push edx
push eax
mov ecx, ebx
call fcn.00402d00
mov esi, eax
mov ebp, 1
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
inc edi
test esi, esi
je 0x4031a0
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x3c]
push eax
call fcn.0040ba10
xor edi, edi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x18]
inc ecx
cmp ebp, edi
mov dword [esp + 0x18], ecx
je 0x403142
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x3c]
push eax
call fcn.0040ba10
lea ecx, [esp + 0x3c]
mov dword [esp + 0x70], 0xffffffff
call fcn.0040bb90
mov ecx, dword [esp + 0x68]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 8
Function at 0x403840
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
push ebx
push ebp
push esi
mov dword [esp + 0x10], ecx
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ebp, 0x4216d8
mov edx, dword [ebp + 4]
mov eax, dword [ebp]
lea ecx, [esp + 0x10]
xor ebx, ebx
push ecx
mov ecx, dword [esp + 0x18]
push ebx
push ebx
push edx
push eax
mov dword [esp + 0x24], ebx
call fcn.00403970
cmp eax, 0x7a
jne 0x40394f
mov ecx, dword [esp + 0x10]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x18], esi
je 0x40394f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp + 4]
mov edi, eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x10]
push edx
mov edx, dword [ebp]
push eax
push edi
push ecx
mov ecx, dword [esp + 0x24]
push edx
call fcn.00403970
cmp eax, ebx
je 0x4038e9
cmp eax, 0x103
jne 0x403941
cmp dword [edi], ebx
jbe 0x403941
cmp dword [edi], ebx
jbe 0x403941
lea esi, [edi + 4]
call fcn.0041d961
mov ecx, dword [esi]
mov eax, dword [eax + 4]
push ecx
push str.DeviceClassName
mov ecx, eax
call fcn.004040c0
mov eax, dword [esp + 0x20]
cmp eax, 6
jae 0x403921
cmp eax, 5
jne 0x40391d
mov eax, dword [esp + 0x24]
test eax, eax
ja 0x403921
xor eax, eax
jmp 0x403926
mov eax, 2
mov edx, dword [esi]
mov ecx, dword [esp + 0x14]
push eax
push edx
call fcn.00403de0
mov eax, dword [edi]
inc ebx
add esi, 4
cmp ebx, eax
jb 0x4038f0
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
add ebp, 8
cmp ebp, 0x4216f8
jl 0x403873
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x406c90
Capabilities:
Identify system language via api

Disassembly:
mov ax, word [0x429df4]
sub esp, 0x104
test ax, ax
push esi
mov esi, ecx
jne 0x406ceb
call fcn.0041d961
mov eax, dword [eax + 4]
lea ecx, [esp + 4]
push 0x104
push ecx
mov edx, dword [eax + 0x70]
push str.LANG
push edx
mov ecx, esi
call fcn.00406d00
test eax, eax
je 0x406cdf
lea eax, [esp + 4]
push eax
call fcn.0040c620
test ax, ax
mov word [0x429df4], ax
jne 0x406ceb
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [0x429df4], ax
pop esi
add esp, 0x104
ret

Function at 0x406f70
Capabilities:
Get graphical window text

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi + 0x314]
test eax, eax
je 0x406ff2
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x406ff2
mov ecx, dword [esp + 8]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
test ecx, ecx
je 0x406fa2
mov eax, dword [eax + 0x1c]
push ecx
push 0
push 0xc2
push eax
call esi
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x406fdb
cmp byte [ebx], 0
je 0x406fdb
mov ecx, dword [edi + 0x314]
push 0x42867c
push 0
push 0xc2
mov edx, dword [ecx + 0x1c]
push edx
call esi
mov eax, dword [edi + 0x314]
push ebx
push 0
push 0xc2
mov ecx, dword [eax + 0x1c]
push ecx
call esi
mov edx, dword [edi + 0x314]
push 1
push 0xd
push 0x102
mov eax, dword [edx + 0x1c]
push eax
call esi
pop esi
pop ebx
pop edi
ret 8
Function at 0x409fc0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x120
push ebx
push ebp
push esi
mov esi, dword [esp + 0x130]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x2c]
xor ebp, ebp
push esi
mov dword [esp + 0x1c], ecx
push eax
mov dword [esp + 0x1c], ebp
call edi
cmp byte [esi + 1], 0x3a
jne 0x40a001
mov cl, byte [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
jne 0x40a001
cmp byte [esi], 0
jne 0x40a054
mov al, byte [esi]
cmp al, 0x2f
je 0x40a00b
cmp al, 0x5c
jne 0x40a016
mov al, byte [esi + 1]
cmp al, 0x2f
je 0x40a054
cmp al, 0x5c
je 0x40a054
call fcn.0041d961
mov eax, dword [eax + 8]
lea edx, [esp + 0x2c]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov al, byte [esi]
cmp al, 0x2f
je 0x40a04c
cmp al, 0x5c
je 0x40a04c
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.0040c470
push eax
call fcn.0040c510
jmp 0x40a054
lea ecx, [esp + 0x2e]
push esi
push ecx
call edi
push 0
push 0x83
push 3
push 0
push 1
lea edx, [esp + 0x40]
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40a111
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x24]
push 0xe
push ecx
push ebx
call ebp
mov edx, dword [esp + 0x1e]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40a0f9
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x1e]
mov esi, eax
lea eax, [esp + 0x10]
push 0
add ecx, 0xfffffff2
push eax
push ecx
push esi
push ebx
call ebp
test eax, eax
je 0x40a0eb
mov edx, dword [esp + 0x1e]
mov eax, dword [esp + 0x10]
add edx, 0xfffffff2
cmp eax, edx
jne 0x40a0eb
mov eax, dword [esp + 0x138]
mov ecx, dword [esp + 0x18]
push eax
push esi
call fcn.00409ed0
mov dword [esp + 0x14], eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret 8
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x120
ret 8

Function at 0x40a120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
call fcn.0041d961
mov edi, dword [esp + 0x10]
mov eax, dword [eax + 8]
and edi, 0xffff
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40a14d
pop edi
pop esi
pop ebx
ret 8
call fcn.0041d961
mov eax, dword [eax + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
push esi
mov ecx, ebx
call fcn.00409ed0
test eax, eax
jne 0x40a195
cmp word [esi + 0xc], 1
jne 0x40a195
cmp word [esi + 0xe], 8
jae 0x40a195
call fcn.0041d961
mov eax, dword [eax + 8]
push edi
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
pop edi
pop esi
pop ebx
ret 8
Function at 0x40a1a0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
push ebp
push esi
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0xc], ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebp, dword [esp + 0x2c]
test ebp, ebp
je 0x40a2d2
cmp byte [ebp], 0
je 0x40a2d2
push ebx
push edi
push 5
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, eax
push esi
shl edi, 1
call dword [sym.imp.USER32.dll_GetDC]
lea ecx, [esp + 0x14]
mov ebx, eax
push ecx
push ebp
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebp
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPointA]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
sub edx, edi
sub edx, ecx
cmp eax, edx
jl 0x40a248
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
call fcn.0041c74c
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
sub ecx, eax
push 4
push ecx
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x40]
lea edx, [edi + ecx]
push edx
push eax
mov eax, dword [esp + 0x34]
sub eax, edi
sub eax, ecx
add eax, ebx
push eax
jmp 0x40a27a
mov ebx, dword [esp + 0x38]
test ebx, ebx
je 0x40a283
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.0041c74c
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
sub edx, eax
push 4
push edx
mov edx, dword [esp + 0x2c]
sub edx, ecx
add ecx, ebx
push edx
push eax
push ecx
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x30]
push eax
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
sub eax, edi
mov esi, eax
sub esi, ecx
cmp edx, esi
jl 0x40a2c6
sub eax, edx
pop edi
sub eax, ecx
add eax, ebx
pop ebx
pop esi
pop ebp
add esp, 0x1c
ret 0xc
mov eax, ebx
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x1c
ret 0xc
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret 0xc
Function at 0x40b190
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x41fafa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
push 0x66
mov dword [esp + 0x18], esi
call fcn.0041b436
mov edx, dword [0x4289d4]
lea ecx, [esi + 0x5c]
mov dword [esp + 0x1c], 0
mov dword [ecx], edx
mov eax, dword [0x4289d4]
lea edi, [esi + 0x60]
mov dword [edi], eax
mov edx, dword [0x4289d4]
lea ebx, [esi + 0x64]
mov dword [ebx], edx
mov eax, dword [0x4289d4]
lea ebp, [esi + 0x68]
mov dword [ebp], eax
mov edx, dword [0x4289d4]
mov dword [esi + 0x6c], edx
mov eax, dword [0x4289d4]
mov dword [esi + 0x70], eax
mov edx, dword [esp + 0x28]
mov byte [esp + 0x1c], 6
push edx
mov dword [esi], method.CDialog.virtual_0
call fcn.0041726d
mov eax, dword [esp + 0x2c]
mov ecx, edi
push eax
call fcn.0041726d
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, ebx
call fcn.0041726d
mov edx, dword [esp + 0x34]
mov ecx, ebp
push edx
call fcn.0041726d
mov eax, dword [esp + 0x38]
lea ecx, [esi + 0x6c]
push eax
call fcn.0041726d
call fcn.0041d961
call fcn.0041d961
mov eax, dword [eax + 0xc]
push 1
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x74], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x18

Function at 0x40ba30
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
ret 0x18

Function at 0x40ba60
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
ret 0x18
Function at 0x410895
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4295d0
cmp edx, dword [eax]
je 0x4108b7
add eax, 8
inc ecx
cmp eax, 0x429660
jl 0x4108a8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4295d0]
jne 0x4109e5
mov eax, dword [0x42bdc8]
cmp eax, 1
je 0x4109bf
test eax, eax
jne 0x4108e8
cmp dword [0x428fa4], 1
je 0x4109bf
cmp edx, 0xfc
je 0x4109e5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41091f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040fe10
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040ff00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x410962
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040ff00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x423424
push edi
call fcn.0040db20
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040fe10
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040fe20
lea eax, [ebp - 0xa0]
push 0x423404
push eax
call fcn.0040fe20
push dword [esi + 0x4295d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040fe20
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00411d99
add esp, 0x2c
pop edi
jmp 0x4109e5
lea eax, [ebp + 8]
lea esi, [esi + 0x4295d4]
push 0
push eax
push dword [esi]
call fcn.0040ff00
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 0x415d60
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.0040f0a0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x415e2b
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 0x415e2b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x415dde
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x415de9
or bh, 8
and edi, 0x8000000
je 0x415e04
mov eax, dword [0x42d55c]
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 0x415e2b
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 0x416200
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 0x41622b
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 0x41624f
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 0x41626a
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 0x419226
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x41925e
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.004174a3
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041747b
jmp 0x41926a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x41a861
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 0x41a8a3
call fcn.0041d961
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41a8a3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41a89a
xor eax, eax
jmp 0x41a8ab
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041a8b1
pop edi
pop esi
pop ebx
ret 4

Function at 0x41b15f
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 0x41b181
cmp dword [edi + 0x3c], 0
jne 0x41b181
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0041d961
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.0041b1ae
pop edi
pop esi
pop ebx
ret 8

Function at 0x41e7e1
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 0x41e80f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41e82d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041e747
jmp 0x41e82d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41e82d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041e747
test edi, edi
mov eax, edi
jne 0x41e817
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401037
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp - 0xc], eax
mov eax, dword [0x438368]
push ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [0x43836c]
push esi
mov esi, dword [edx + 4]
xor ebx, ebx
mov dword [ebp - 0x24], eax
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
call fcn.00401030
mov eax, dword [0x438370]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [0x438374]
add edi, 0x23f
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, dword [ebp - 0xc]
shl eax, 4
cmp dword [0x1a28f24], 0xc
mov dword [ebp - 4], eax
jne 0x4010c2
push ebx
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0x438]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
add eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
mov eax, dword [0x1a28f24]
cmp eax, 0xfa9
jne 0x4010de
mov dword [0x1a28f20], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010f9
push ebx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov edx, dword [ebp + 8]
mov dword [0x1a28e74], ebx
mov eax, dword [ebp - 0xc]
add eax, edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [0x1a28f1c], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x14]
sub esi, eax
mov dword [ebp - 8], eax
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
lea eax, [edi + esi]
mov dword [ebp - 0x18], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
add edi, 0x61c88647
dec dword [ebp - 0x20]
jne 0x40108b
mov eax, dword [ebp - 0xc]
pop edi
mov dword [edx + 4], esi
pop esi
mov dword [edx], eax
pop ebx
leave
ret 4