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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
push edi
je 0x427d63
push ebx
call fcn.00427cc2
test eax, eax
pop ecx
jne 0x427d34
call fcn.00423148
mov dword [eax], 0xf
call fcn.00423135
mov dword [eax], 0xd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x108]
push eax
mov esi, 0x104
push esi
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x427d76
lea eax, [ebp - 0x108]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x427d2d
inc eax
cmp eax, esi
ja 0x427d2d
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x427da8
cmp eax, dword [ebp + 0x10]
jg 0x427d8e
mov eax, dword [ebp + 0x10]
push eax
call fcn.004219a5
mov edi, eax
test edi, edi
pop ecx
jne 0x427dbd
call fcn.00423135
mov dword [eax], 0xc
jmp 0x427d2d
cmp eax, dword [ebp + 0x10]
jle 0x427dbd
call fcn.00423135
mov dword [eax], 0x22
jmp 0x427d2d
lea ecx, [ebp - 0x108]
mov esi, edi
mov eax, ecx
sub esi, eax
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x427dc9
mov eax, edi
jmp 0x427d2f

Function at 0x4286a9
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00421610
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x428744
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x46cce0]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x428744
cmp eax, 1
je 0x428765
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x428744
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x428711
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x428740
xor eax, eax
inc eax
jmp 0x428784
cmp edi, eax
jae 0x428748
xor eax, eax
jmp 0x428784
cmp eax, esi
jae 0x42874f
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x46cce0]
jmp 0x428768
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x429cb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x429cde
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x429ce5
cmp ebx, dword [eax + 4]
jae 0x429ce5
xor eax, eax
jmp 0x429ed5
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x429cf6
xor eax, eax
inc eax
jmp 0x429ed4
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x429d0c
cmp ecx, edx
jae 0x429e51
cmp dword [eax + 4], 0
je 0x429d15
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x429cfd
cmp dword [ebp + 8], 0
je 0x429d37
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x429e51
cmp eax, esi
jae 0x429e51
mov eax, dword [0x46d3d0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x429d5c
cmp dword [esi*4 + 0x46d3d8], edi
je 0x429e55
inc esi
cmp esi, eax
jl 0x429d4a
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x429ed1
cmp dword [ebp - 8], 0x1000000
jne 0x429ed1
test byte [ebp - 0xc], 0xcc
je 0x429dda
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x429ed1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x429ed1
cmp word [eax + 0x18], 0x10b
jne 0x429ed1
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x429ed1
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x429dda
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x429dda
test byte [ecx + 0x27], 0x80
jne 0x429e51
push 1
push 0x46d418
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x429cee
mov ecx, dword [0x46d3d0]
test ecx, ecx
mov edx, ecx
jle 0x429e0e
lea eax, [ecx*4 + 0x46d3d4]
cmp dword [eax], edi
je 0x429e0e
dec edx
sub eax, 4
test edx, edx
jg 0x429e02
test edx, edx
jne 0x429e3f
push 0xf
pop ebx
cmp ecx, ebx
jg 0x429e1b
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x429e33
lea eax, [edx*4 + 0x46d3d8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x429e21
cmp ecx, 0x10
jge 0x429e3f
inc ecx
mov dword [0x46d3d0], ecx
push 0
push 0x46d418
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x429cee
xor eax, eax
jmp 0x429ed4
test esi, esi
jle 0x429cee
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x46d418
call ebx
test eax, eax
jne 0x429cee
cmp dword [esi*4 + 0x46d3d8], edi
je 0x429eab
mov eax, dword [0x46d3d0]
lea esi, [eax - 1]
test esi, esi
jl 0x429e99
cmp dword [esi*4 + 0x46d3d8], edi
je 0x429e95
dec esi
jns 0x429e89
test esi, esi
jge 0x429ea9
cmp eax, 0x10
jge 0x429ea4
inc eax
mov dword [0x46d3d0], eax
lea esi, [eax - 1]
jmp 0x429eab
je 0x429ec3
xor ecx, ecx
test esi, esi
jl 0x429ec3
lea eax, [ecx*4 + 0x46d3d8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x429eb1
push 0
push 0x46d418
call ebx
jmp 0x429cee
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x429ed9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
jne 0x429ef7
xor eax, eax
jmp 0x42a065
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x46f820]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x429f2a
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.0042b96e
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x429ffc
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edi
jbe 0x42a034
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
mov dword [ebp - 8], edi
cmp ecx, dword [ebp + 0x10]
jae 0x429f85
mov edx, dword [ebp - 0xc]
inc dword [ebp - 0xc]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x429f76
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 8]
mov byte [eax], dl
inc eax
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x400
jl 0x429f59
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x429fc5
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
cmp eax, edi
jl 0x429fce
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x429f4a
jmp 0x429fd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
xor edi, edi
mov eax, dword [ebp - 0x10]
cmp eax, edi
jne 0x42a060
cmp dword [ebp - 4], edi
je 0x42a034
push 5
pop esi
cmp dword [ebp - 4], esi
jne 0x42a029
call fcn.00423135
mov dword [eax], 9
call fcn.00423148
mov dword [eax], esi
jmp 0x42a05b
push edi
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42a01e
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], eax
jmp 0x429fd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x429fd0
push dword [ebp - 4]
call fcn.0042315b
pop ecx
jmp 0x42a05b
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x42a049
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x42a049
xor eax, eax
jmp 0x42a063
call fcn.00423135
mov dword [eax], 0x1c
call fcn.00423148
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x42a063
sub eax, dword [ebp - 0x14]
pop esi
pop ebx
pop edi
leave
ret
Function at 0x42ad43
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x46d474], ebx
push esi
push edi
jne 0x42adc3
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42adfe
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x444544
push edi
call esi
test eax, eax
mov dword [0x46d474], eax
je 0x42adfe
push 0x444534
push edi
call esi
push 0x444520
push edi
mov dword [0x46d478], eax
call esi
cmp dword [0x46cce0], 2
mov dword [0x46d47c], eax
jne 0x42adc3
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x46d484], eax
je 0x42adc3
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x46d480], eax
mov eax, dword [0x46d480]
test eax, eax
je 0x42ae08
call eax
test eax, eax
je 0x42adef
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x46d484]
test eax, eax
je 0x42adef
test byte [ebp - 8], 1
jne 0x42ae08
cmp dword [0x46ccec], 4
jb 0x42ae02
or byte [ebp + 0x12], 0x20
jmp 0x42ae27
xor eax, eax
jmp 0x42ae37
or byte [ebp + 0x12], 4
jmp 0x42ae27
mov eax, dword [0x46d478]
test eax, eax
je 0x42ae27
call eax
mov ebx, eax
test ebx, ebx
je 0x42ae27
mov eax, dword [0x46d47c]
test eax, eax
je 0x42ae27
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x46d474]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42b9f1
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
call fcn.00426aee
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x42bb36
push 2
push esi
push dword [ebp + 8]
call fcn.00426aee
add esp, 0xc
cmp eax, ebx
je 0x42bb36
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x42bad9
mov ebx, 0x1000
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp - 4], eax
jne 0x42ba6a
call fcn.00423135
mov dword [eax], 0xc
or esi, 0xffffffff
jmp 0x42bb21
push 0x8000
push dword [ebp + 8]
call fcn.0042c681
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp edi, ebx
mov eax, ebx
jge 0x42ba84
mov eax, edi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.00429ed9
add esp, 0xc
cmp eax, 0xffffffff
je 0x42baa0
sub edi, eax
test edi, edi
jg 0x42ba7c
jmp 0x42bab8
call fcn.00423148
cmp dword [eax], 5
jne 0x42bab5
call fcn.00423135
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0042c681
pop ecx
pop ecx
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x42bb21
jge 0x42bb21
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00426aee
push dword [ebp + 8]
call fcn.0042a68d
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x42bb21
call fcn.00423135
mov dword [eax], 0xd
call fcn.00423148
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.00426aee
add esp, 0xc
mov eax, esi
pop edi
jmp 0x42bb38
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x42bb3c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x42bd10
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x46f820]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x42bd10
test cl, 0x48
je 0x42bba7
cmp byte [eax + 5], 0xa
je 0x42bba7
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42bbf9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x42bbe1
call fcn.00423135
mov dword [eax], 9
call fcn.00423148
mov dword [eax], esi
jmp 0x42bbf1
cmp eax, 0x6d
je 0x42bd10
push eax
call fcn.0042315b
pop ecx
or eax, 0xffffffff
jmp 0x42bd12
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x42bd0b
test eax, eax
je 0x42bc20
cmp byte [ebx], 0xa
jne 0x42bc20
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x42bc29
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x42bd05
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x42bcf5
cmp al, 0xd
je 0x42bc5b
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x42bce7
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x42bc75
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x42bc70
add dword [ebp + 0x10], 2
jmp 0x42bcc9
mov dword [ebp + 0x10], eax
jmp 0x42bce3
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42bc9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42bce3
cmp dword [ebp - 0xc], 0
je 0x42bce3
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x42bcbe
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x42bcc9
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x42bce6
cmp ebx, dword [ebp + 0xc]
jne 0x42bcce
cmp byte [ebp - 1], 0xa
jne 0x42bcce
mov byte [ebx], 0xa
jmp 0x42bce6
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00426aee
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x42bce7
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x42bc3f
jmp 0x42bd05
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x42bd05
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x42bd12
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42cb25
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [ebp - 0xc], ebx
je 0x42cb8d
push 0x3d
push esi
call fcn.00421abb
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x42cb8d
cmp esi, eax
je 0x42cb8d
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x46cd00]
sete cl
cmp eax, dword [0x46cd04]
mov dword [ebp - 4], ecx
jne 0x42cb73
mov edi, eax
call fcn.0042cac6
mov dword [0x46cd00], eax
cmp eax, ebx
jne 0x42cbcc
cmp dword [ebp + 0xc], ebx
je 0x42cb95
cmp dword [0x46cd08], ebx
je 0x42cb95
call fcn.0042bd65
test eax, eax
je 0x42cbcc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x42ccd0
push 4
pop ecx
call fcn.00425455
cmp eax, ebx
mov dword [0x46cd00], eax
je 0x42cb8d
mov dword [eax], ebx
cmp dword [0x46cd08], ebx
jne 0x42cbcc
push 4
pop ecx
call fcn.00425455
cmp eax, ebx
mov dword [0x46cd08], eax
je 0x42cb8d
mov dword [eax], ebx
mov edi, dword [ebp - 8]
mov ebx, dword [0x46cd00]
sub edi, esi
push esi
call fcn.0042ca79
mov edi, eax
test edi, edi
pop ecx
jl 0x42cc26
cmp dword [ebx], 0
je 0x42cc26
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00421219
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x42cc0d
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov esi, eax
jmp 0x42cc5a
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x42cc04
mov edx, edi
shl edx, 2
mov ecx, ebx
call fcn.004254cb
test eax, eax
mov esi, dword [ebp + 8]
je 0x42cc5a
jmp 0x42cc55
cmp dword [ebp - 4], 0
jne 0x42ccc9
test edi, edi
jge 0x42cc36
neg edi
lea edx, [edi*4 + 8]
mov ecx, ebx
call fcn.004254cb
test eax, eax
je 0x42cb8d
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x46cd00], eax
cmp dword [ebp + 0xc], 0
je 0x42ccb4
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42cc65
sub eax, edx
lea ecx, [eax + 2]
call fcn.00425455
mov edi, eax
test edi, edi
je 0x42ccb4
mov ecx, esi
sub eax, esi
mov dl, byte [ecx]
mov byte [eax + ecx], dl
inc ecx
test dl, dl
jne 0x42cc80
mov ecx, dword [ebp - 8]
add eax, ecx
mov ecx, dword [ebp - 4]
mov byte [eax], dl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x42ccad
or dword [ebp - 0xc], 0xffffffff
push edi
call fcn.00421219
pop ecx
cmp dword [ebp - 4], 0
je 0x42ccc1
push esi
call fcn.00421219
pop ecx
mov eax, dword [ebp - 0xc]
jmp 0x42cb90
push esi
call fcn.00421219
pop ecx
xor eax, eax
jmp 0x42cb90
Function at 0x4300e0
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.00421610
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4301ab
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 0x4301ab
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x43015e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x430169
or bh, 8
and edi, 0x8000000
je 0x430184
mov eax, dword [0x470bfc]
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 0x4301ab
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 0x430580
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 0x4305ab
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 0x4305cf
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 0x4305ea
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 0x4344c0
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 0x434502
call fcn.00439be1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x434502
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4344f9
xor eax, eax
jmp 0x43450a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00434510
pop edi
pop esi
pop ebx
ret 4

Function at 0x43a833
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 0x43a861
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43a87f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0043a799
jmp 0x43a87f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43a87f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0043a799
test edi, edi
mov eax, edi
jne 0x43a869
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8