joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b710
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d3cbb
push eax
mov eax, 0x12b8
mov dword fs:[0], esp
call fcn.004a9610
push esi
mov esi, dword [esp + 0x12cc]
push edi
mov edi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x46b788
mov eax, dword [edi + 0xc0]
push esi
push 0x1fe
lea ecx, [esp + 0x174]
push eax
push ecx
call fcn.00472a10
mov edx, dword [str.ACDSee]
mov ecx, dword [edi + 0xc4]
add esp, 0x10
lea eax, [esp + 0x16c]
push 0
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x46b93b
push 1
lea ecx, [esp + 0x10]
call fcn.004b6cd1
mov edx, dword [0x4debf4]
lea ecx, [esp + 0xc]
push edx
push 0x21
push esi
mov dword [esp + 0x12d4], 0
call fcn.004b6dc3
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
test byte [esp + ecx + 0x14], 6
jne 0x46b910
push ebx
push ebp
mov ebp, dword [esp + 0x12dc]
push 0xa
lea edx, [esp + 0x2cc]
push 0x1000
push edx
lea ecx, [esp + 0x20]
call fcn.004b6eb5
lea ecx, [esp + 0x14]
call fcn.004b6e38
cmp byte [esp + 0x2c8], 0x22
jne 0x46b812
lea eax, [esp + 0x2c9]
push 0x22
push eax
lea esi, [esp + 0x2d1]
call fcn.004a8857
add esp, 8
jmp 0x46b847
lea ecx, [esp + 0x2c8]
push 0x4f0668
push ecx
lea esi, [esp + 0x2d0]
call fcn.004a7bde
add esp, 8
test eax, eax
jne 0x46b84f
lea edx, [esp + 0x2c8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + eax + 0x2c8]
test eax, eax
je 0x46b8f3
dec eax
sub eax, esi
inc eax
je 0x46b8f3
mov ecx, eax
lea edi, [esp + 0x70]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x70], 0
lea eax, [esp + 0x70]
push eax
call fcn.00470f80
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x46b8f3
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea edx, [ecx + 1]
cmp esi, edx
jne 0x46b8e3
mov eax, dword [ebp + 0x14]
add eax, ecx
lea ecx, [eax*4 + 4]
push ecx
call fcn.004bd49b
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 4]
mov ebx, eax
lea ecx, [edx*4 + 4]
mov edi, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
push eax
call fcn.004bd4c4
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
add esp, 8
add eax, ecx
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x10]
mov dword [ebp + 4], ebx
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 4]
mov dword [ecx + edx*4], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 4]
test byte [esp + edx + 0x1c], 7
jne 0x46b90e
mov eax, edx
test byte [esp + eax + 0x1c], 6
je 0x46b7cc
pop ebp
pop ebx
lea ecx, [esp + 0xc]
call fcn.004b6e05
lea ecx, [esp + 0x18]
mov dword [esp + 0x12c8], 0xffffffff
call fcn.004b6d82
lea ecx, [esp + 0x18]
call fcn.004b6c58
mov eax, 1
mov ecx, dword [esp + 0x12c0]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x12c4
ret 8
Function at 0x47f1c0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
sub esp, 0x40
push esi
push edi
mov edi, dword [esp + 0x4c]
mov esi, ecx
push 9
mov ecx, edi
call fcn.004c28d9
test eax, eax
jle 0x47f1e2
pop edi
xor eax, eax
pop esi
add esp, 0x40
ret 8
mov eax, dword [esp + 0x50]
push ebx
push ebp
push eax
mov ecx, esi
xor ebx, ebx
call fcn.0047f690
mov esi, eax
test esi, esi
je 0x47f2ae
mov ebp, dword [sym.imp.USER32.dll_MapVirtualKeyA]
test ebx, ebx
mov eax, 0x4f0e50
jne 0x47f210
mov eax, 0x4f0e54
push eax
mov ecx, edi
call fcn.004c2806
test byte [esi], 0x10
je 0x47f229
push str.Alt
mov ecx, edi
call fcn.004c2806
test byte [esi], 8
je 0x47f23a
push str.Ctrl
mov ecx, edi
call fcn.004c2806
test byte [esi], 4
je 0x47f24b
push str.Shift
mov ecx, edi
call fcn.004c2806
test byte [esi], 1
je 0x47f27a
xor ecx, ecx
push 0
mov cx, word [esi + 2]
push ecx
call ebp
lea edx, [esp + 0x10]
push 0x40
shl eax, 0x10
push edx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.004c2806
jmp 0x47f285
mov cl, byte [esi + 2]
push ecx
mov ecx, edi
call fcn.004c282d
mov ax, word [esi + 4]
mov ebx, 1
test ax, ax
je 0x47f2ae
and eax, 0xffff
lea edx, [eax*4]
sub edx, eax
neg edx
lea esi, [esi + edx*2]
test esi, esi
jne 0x47f202
mov eax, ebx
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x40
ret 8

Function at 0x47f3f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d4194
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push esi
lea ecx, [esp + 4]
call fcn.0047fc50
xor esi, esi
lea ecx, [esp + 4]
mov dword [esp + 0x68], esi
call fcn.0047fc70
push esi
push esi
push esi
lea ecx, [esp + 0x10]
call fcn.0047fc90
lea ecx, [esp + 0xc]
call fcn.004c0be8
lea eax, [esp + 4]
push 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], 1
call fcn.004c0d00
lea ecx, [esp + 0x34]
call fcn.0047f610
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], 8
push ecx
push 0x400
push esi
lea ecx, [esp + 0x10]
call fcn.0047faa0
push eax
call dword [sym.imp.USER32.dll_GetMenuItemInfoA]
mov esi, dword [esp + 0x4c]
lea ecx, [esp + 4]
call fcn.004c19f0
lea ecx, [esp + 4]
mov dword [esp + 0x68], 0xffffffff
call fcn.00405100
mov ecx, dword [esp + 0x60]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x68
ret
Function at 0x1000869c
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5a0
push ebx
push edi
call fcn.10005989
push 0x10015a68
lea esp, [esp + 4]
nop
nop
push 0x100124c0
xor ebx, ebx
push 1
push ebx
call 0x100337e0
daa
push ebp
call 0x1003b59a
cmp eax, 0xb7
je 0x10008805
cmp eax, 5
je 0x10008805
push esi
push 1
push 0x10015378
call fcn.100042a2
pop ecx
pop ecx
call fcn.10005986
mov edi, 0x100168d4
push edi
call 0x1004075a
inc ecx
mov esi, dword [fcn.1000e094]
test eax, eax
jne 0x1000871a
push 0x35
call fcn.100044ad
cmp eax, 0xffffffff
pop ecx
je 0x100086df
push 0x100152a4
push eax
call fcn.10004351
pop ecx
pop ecx
push ebx
push edi
call 0x10030e70
cmp edi, dword [ecx]
pop ebp
adc byte [esp + edx + 0x68], dh
rol byte [edi], 1
add byte [eax], al
call dword [0x1000e0b0]
push dword [ebp + 0x10]
call fcn.1002e51e
call fcn.10004482
test eax, eax
jne 0x10008715
push ebx
push ebx
push ebx
push 0x10008578
push ebx
push ebx
call esi
call fcn.10006dd5
push ebx
push ebx
push ebx
push 0x10006ee7
push ebx
push ebx
call esi
mov edi, dword [0x1000e0b0]
push 0x3e8
call edi
lea eax, [ebp - 0x5a0]
push eax
push 0x202
push ebp
call 0x10033977
push ebx
push ebx
push 0x10012508
push 0x10006b30
push ebx
push ebx
call esi
push ebx
push ebx
push ebx
push 0x10008208
push ebx
push ebx
call esi
push 0xbb8
call edi
xor eax, eax
lea edi, [ebp - 0xf]
mov byte [ebp - 0x10], bl
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10]
push eax
call fcn.10005aca
cmp eax, 5
pop ecx
jge 0x10008791
push ebx
push ebx
push ebx
push 0x10007112
push ebx
push ebx
call esi
push ebx
push ebx
push ebx
push 0x1000827d
push ebx
push ebx
call esi
mov edi, dword [0x1000e0b0]
push 0xbb8
call edi
push ebx
push ebx
push ebx
push 0x1000490f
push ebx
push ebx
call esi
push ebx
push ebx
push ebx
push 0x10006eef
push ebx
push ebx
call esi
nop
nop
nop
nop
nop
nop
call fcn.10004482
test eax, eax
jne 0x100087f7
push 0x927c0
call edi
push ebx
push ebx
push ebx
push 0x10006a7f
push ebx
push ebx
call esi
push 0x1388
call edi
push ebx
push ebx
push ebx
push 0x1000842d
push ebx
push ebx
call esi
push 0xffffffffffffffff
call edi
pop esi
push 0x36ee80
call edi
jmp 0x100087fc
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x40f]
mov byte [ebp - 0x410], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x100167d0
push 0x10015a28
stosb byte es:[edi], al
call section..text
pop ecx
push eax
lea eax, [ebp - 0x410]
push eax
call dword [fcn.1000e248]
add esp, 0xc
lea eax, [ebp - 0x410]
push ebx
push eax
push edx
call fcn.100255a5
cmp dword [ebp + 0x10], ebx
je 0x10008865
push 0x7d0
call dword [0x1000e0b0]
push dword [ebp + 0x10]
call 0x10041059
test eax, 0xc3c95b5f
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push eax
mov dword [esp + 8], eax
call fcn.1000cca8
xor eax, eax
pop ecx
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
pop esi
pop ecx
ret
pop edi
pop ebx
leave
ret
Function at 0x1000b71e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x1000b72c
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 8
push esi
push edi
not eax
mov ecx, 0xff
jb 0x1000b80d
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [edx]
mov esi, eax
sub dword [ebp + 0x10], 8
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x1000fc78]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x1000fc78]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x1000fc78]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x1000fc78]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x1000fc78]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x1000fc78]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x1000fc78]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x1000fc78]
xor eax, esi
inc edx
dec edi
jne 0x1000b749
pop ebx
cmp dword [ebp + 0x10], 0
je 0x1000b82e
movzx edi, byte [edx]
mov esi, eax
and esi, ecx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x1000fc78]
xor eax, esi
inc edx
dec dword [ebp + 0x10]
jne 0x1000b813
pop edi
pop esi
not eax
pop ebp
ret
Function at 0x401040
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x42688b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
mov eax, dword [0x432c88]
push esi
push edi
mov dword [esp + 8], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x9c
push ecx
call esi
test eax, eax
jne 0x4010a3
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push edx
call esi
test eax, eax
je 0x40117b
mov eax, dword [esp + 0x1c]
dec eax
je 0x40114c
dec eax
je 0x4010c0
mov dword [0x434bb0], 4
jmp 0x40117b
mov eax, dword [esp + 0x10]
cmp eax, 4
ja 0x4010d3
mov dword [0x434bb0], 3
cmp eax, 5
jne 0x401111
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4010ef
mov dword [0x434bb0], 4
jmp 0x40117b
cmp eax, 1
jne 0x401100
mov dword [0x434bb0], 5
jmp 0x40117b
cmp eax, 2
jne 0x40117b
mov dword [0x434bb0], 6
jmp 0x40117b
cmp eax, 6
jne 0x40117b
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x40112a
mov dword [0x434bb0], 7
jmp 0x40117b
cmp eax, 1
jne 0x40113b
mov dword [0x434bb0], 8
jmp 0x40117b
cmp eax, 2
jne 0x40117b
mov dword [0x434bb0], 9
jmp 0x40117b
cmp dword [esp + 0x10], 4
jne 0x40117b
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x401167
mov dword [0x434bb0], 1
jmp 0x40117b
cmp eax, 0xa
je 0x401171
cmp eax, 0x5a
jne 0x40117b
mov dword [0x434bb0], 2
lea ecx, [esp + 8]
mov dword [esp + 0xb0], 0xffffffff
call fcn.0041edf8
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0xac
ret
Function at 0x401940
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x42697b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
mov eax, dword [0x432c88]
push esi
push edi
or esi, 0xffffffff
mov dword [esp + 8], eax
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 0x9c
call edi
test eax, eax
jne 0x4019d0
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push edx
call edi
test eax, eax
jne 0x4019d0
lea ecx, [esp + 8]
mov dword [esp + 0xb0], 0xffffffff
call fcn.0041edf8
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
add esp, 0xac
ret
mov eax, dword [esp + 0x1c]
dec eax
je 0x401a69
dec eax
je 0x4019e8
mov esi, 5
jmp 0x401a95
mov eax, dword [esp + 0x10]
cmp eax, 4
ja 0x4019f6
mov esi, 4
cmp eax, 5
jne 0x401a25
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x401a0d
mov esi, 5
jmp 0x401a95
cmp eax, 1
jne 0x401a19
mov esi, 6
jmp 0x401a95
cmp eax, 2
jne 0x401a95
mov esi, 7
jmp 0x401a95
cmp eax, 6
jne 0x401a5d
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x401a39
mov esi, 8
jmp 0x401a95
cmp eax, 1
jne 0x401a45
mov esi, 9
jmp 0x401a95
cmp eax, 2
jne 0x401a51
mov esi, 0xa
jmp 0x401a95
cmp eax, 3
jne 0x401a95
mov esi, 0xb
jmp 0x401a95
cmp eax, 0xa
jne 0x401a95
mov esi, 0xc
jmp 0x401a95
cmp dword [esp + 0x10], 4
jne 0x401a95
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x401a7f
mov esi, 1
jmp 0x401a95
cmp eax, 0xa
jne 0x401a8b
mov esi, 2
jmp 0x401a95
cmp eax, 0x5a
jne 0x401a95
mov esi, 3
lea ecx, [esp + 8]
mov dword [esp + 0xb0], 0xffffffff
call fcn.0041edf8
mov ecx, dword [esp + 0xa8]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0xac
ret
Function at 0x4122f1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4340e8
cmp edx, dword [eax]
je 0x412313
add eax, 8
inc ecx
cmp eax, 0x434178
jl 0x412304
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4340e8]
jne 0x412441
mov eax, dword [0x436c3c]
cmp eax, 1
je 0x41241b
test eax, eax
jne 0x412344
cmp dword [0x43396c], 1
je 0x41241b
cmp edx, 0xfc
je 0x412441
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41237b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00412810
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00412900
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4123be
lea eax, [ebp - 0x1a4]
push eax
call fcn.00412900
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42b548
push edi
call fcn.00414390
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00412810
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00412820
lea eax, [ebp - 0xa0]
push 0x42b528
push eax
call fcn.00412820
push dword [esi + 0x4340ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.00412820
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004142f8
add esp, 0x2c
pop edi
jmp 0x412441
lea eax, [ebp + 8]
lea esi, [esi + 0x4340ec]
push 0
push eax
push dword [esi]
call fcn.00412900
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 0x4195d0
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.0040ec70
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41969b
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 0x41969b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41964e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x419659
or bh, 8
and edi, 0x8000000
je 0x419674
mov eax, dword [0x4383dc]
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 0x41969b
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 0x419a70
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 0x419a9b
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 0x419abf
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 0x419ada
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 0x41dc1e
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 0x41dc60
call fcn.00423bc7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41dc60
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41dc57
xor eax, eax
jmp 0x41dc68
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041dc6e
pop edi
pop esi
pop ebx
ret 4

Function at 0x424222
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 0x424250
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42426e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00424188
jmp 0x42426e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42426e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00424188
test edi, edi
mov eax, edi
jne 0x424258
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40202c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452fee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
cmp dword [0x471200], 0
je 0x4021da
cmp dword [0x46b0f0], 1
jne 0x40208b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x471208], eax
je 0x402080
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x471208]
push eax
call fcn.0040246b
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x471208], eax
mov eax, dword [0x471200]
push eax
push 1
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041d920
add esp, 4
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.0041d7dc
add esp, 0x10
cmp dword [0x471210], 1
jne 0x4021da
mov eax, dword [0x471200]
push eax
call fcn.0041d659
add esp, 4
cmp eax, 0x600000
jl 0x4021da
mov ecx, dword [0x471200]
push ecx
call fcn.0041d5dc
add esp, 4
cmp dword [0x46b0f4], 0
jne 0x402163
push 0x46b160
push 0x46b164
lea edx, [ebp - 0x10]
push edx
mov ecx, 0x471248
call fcn.00405477
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
call fcn.004013f0
push eax
call fcn.0041d5c9
add esp, 8
mov dword [0x471200], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0043b962
cmp dword [0x471200], 0
jne 0x402157
push 0x46b170
push 0x46b174
call fcn.0041d5c9
add esp, 8
mov dword [0x471200], eax
mov dword [0x46b0f4], 1
jmp 0x4021da
push 0x46b184
push 0x46b188
lea ecx, [ebp - 0x14]
push ecx
mov ecx, 0x471248
call fcn.00405477
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
call fcn.004013f0
push eax
call fcn.0041d5c9
add esp, 8
mov dword [0x471200], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0043b962
cmp dword [0x471200], 0
jne 0x4021d0
push 0x46b194
push 0x46b198
call fcn.0041d5c9
add esp, 8
mov dword [0x471200], eax
mov dword [0x46b0f4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret