joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424bed
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x45be74]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x424c4c
push 0x70
push 1
call fcn.004241b4
add esp, 8
mov esi, eax
test esi, esi
je 0x424c42
push esi
mov eax, dword [0x45be74]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x424c42
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x14], 1
mov dword [esi + 0x50], 0x45c458
jmp 0x424c4c
push 0x10
call fcn.00420428
add esp, 4
mov eax, esi
pop esi
ret

Function at 0x424ca2
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
call fcn.00424d2d
mov dword [0x45beb4], 1
cmp dword [esp + 0x10], 0
mov ebx, dword [esp + 0x14]
mov byte [0x45beb0], bl
jne 0x424d03
cmp dword [0x44cfc4], 0
je 0x424cf1
mov esi, dword [0x44cfc0]
sub esi, 4
cmp esi, dword [0x44cfc4]
jb 0x424cf1
mov eax, dword [esi]
test eax, eax
je 0x424ce6
call eax
sub esi, 4
cmp esi, dword [0x44cfc4]
jae 0x424cde
push 0x460d68
push 0x460d60
call fcn.00424d43
add esp, 8
push 0x460d70
push 0x460d6c
call fcn.00424d43
add esp, 8
test ebx, ebx
je 0x424d20
call fcn.00424d38
jmp 0x424d2a
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebx
ret

Function at 0x4262bf
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 4
xor ecx, ecx
mov eax, 0x45cd00
push edi
cmp dword [eax], edx
je 0x4262dd
add eax, 8
inc ecx
cmp eax, 0x45cd78
jb 0x4262ce
cmp dword [ecx*8 + 0x45cd00], edx
lea eax, [ecx*8]
jne 0x426316
mov edx, dword [eax + 0x45cd04]
push 0
lea eax, [esp + 8]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, dword [0x45c5f0]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
add esp, 4
ret
Function at 0x428ada
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
lea eax, [ebp - 0x104]
xor esi, esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x428b18
cmp byte [ebp - 0x103], 0x3a
jne 0x428b18
movzx eax, byte [ebp - 0x104]
push eax
call fcn.0042045a
add esp, 4
lea esi, [eax - 0x40]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42b5f8
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x42b661
push ebx
call fcn.0042b6ef
add esp, 4
test eax, eax
jne 0x42b633
call fcn.0042418c
mov dword [eax], 0xf
call fcn.00424183
mov dword [eax], 0xd
jmp 0x42b6e6
add bl, 0x40
lea eax, [ebp - 8]
push eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10c]
lea ebx, [ebp - 4]
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x2e
mov byte [ebp - 1], 0
push ecx
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x42b673
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x42b6e6
inc eax
cmp eax, 0x104
ja 0x42b6e6
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x42b6ab
mov ecx, dword [ebp + 0x10]
cmp eax, ecx
jg 0x42b68f
mov eax, ecx
push eax
call fcn.004230ac
add esp, 4
mov edx, eax
test edx, edx
jne 0x42b6bd
call fcn.00424183
mov dword [eax], 0xc
jmp 0x42b6e6
cmp eax, dword [ebp + 0x10]
jle 0x42b6bd
call fcn.00424183
mov dword [eax], 0x22
jmp 0x42b6e6
lea edi, [ebp - 0x10c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, edx
jmp 0x42b6e8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42bb04
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 8], esi
cmp dword [ebp + 0x10], esi
jne 0x42bb21
xor eax, eax
jmp 0x42bc71
mov eax, dword [ebp + 8]
test byte [eax + 0x45c4e8], 0x20
je 0x42bb3a
push 2
push 0
push eax
call fcn.0042bcd0
add esp, 0xc
mov eax, dword [ebp + 8]
test byte [eax + 0x45c4e8], 0x80
je 0x42bbc4
mov dword [ebp - 0xc], 0
mov edi, dword [ebp + 0xc]
mov eax, edi
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jae 0x42bbfc
lea ebx, [ebp - 0x410]
mov eax, edi
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jae 0x42bb8e
mov al, byte [edi]
inc edi
cmp al, 0xa
jne 0x42bb7a
inc esi
mov byte [ebx], 0xd
inc ebx
lea ecx, [ebp - 0x410]
mov byte [ebx], al
inc ebx
mov eax, ebx
sub eax, ecx
cmp eax, 0x400
jl 0x42bb64
lea eax, [ebp - 0x410]
push 0
sub ebx, eax
lea ecx, [ebp - 0x410]
lea eax, [ebp - 4]
push eax
push ebx
push ecx
mov eax, dword [ebp + 8]
push dword [eax*4 + 0x45c5e8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42bbf3
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
cmp eax, ebx
jge 0x42bb50
jmp 0x42bbfc
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax*4 + 0x45c5e8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42bbf3
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x42bbfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], 0
jne 0x42bc6c
cmp dword [ebp - 0xc], 0
je 0x42bc37
cmp dword [ebp - 0xc], 5
jne 0x42bc25
call fcn.00424183
mov dword [eax], 9
call fcn.0042418c
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
jmp 0x42bc30
push dword [ebp - 0xc]
call fcn.00424110
add esp, 4
mov eax, 0xffffffff
jmp 0x42bc71
mov eax, dword [ebp + 8]
test byte [eax + 0x45c4e8], 0x40
je 0x42bc4f
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x42bc4f
xor eax, eax
jmp 0x42bc71
call fcn.00424183
mov dword [eax], 0x1c
call fcn.0042418c
mov dword [eax], 0
mov eax, 0xffffffff
jmp 0x42bc71
mov eax, dword [ebp - 8]
sub eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42d5ba
Capabilities:
Set environment variable

Disassembly:
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
test esi, esi
je 0x42d7a5
push 0x3d
push esi
call fcn.004235ce
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x42d7a5
cmp ebp, esi
je 0x42d7a5
cmp byte [ebp + 1], 1
sbb eax, eax
mov ecx, dword [0x45be98]
neg eax
mov dword [esp + 0x10], eax
cmp dword [0x45be9c], ecx
jne 0x42d612
push ecx
call fcn.0042d80f
add esp, 4
mov dword [0x45be98], eax
cmp dword [0x45be98], 0
jne 0x42d6a1
cmp dword [esp + 0x1c], 0
je 0x42d63d
cmp dword [0x45bea0], 0
je 0x42d63d
call fcn.0042ce97
test eax, eax
je 0x42d6a1
jmp 0x42d7a5
cmp dword [esp + 0x10], 0
je 0x42d64b
xor eax, eax
jmp 0x42d7aa
cmp dword [0x45be98], 0
jne 0x42d676
push 4
call fcn.004230ac
add esp, 4
mov dword [0x45be98], eax
test eax, eax
je 0x42d7a5
mov eax, dword [0x45be98]
mov dword [eax], 0
cmp dword [0x45bea0], 0
jne 0x42d6a1
push 4
call fcn.004230ac
add esp, 4
mov dword [0x45bea0], eax
test eax, eax
je 0x42d7a5
mov eax, dword [0x45bea0]
mov dword [eax], 0
mov edi, dword [0x45be98]
sub ebp, esi
push ebp
push esi
call fcn.0042d7b2
add esp, 8
mov ebx, eax
test ebx, ebx
jl 0x42d6f7
cmp dword [edi], 0
je 0x42d6f7
cmp dword [esp + 0x10], 0
je 0x42d6f2
lea eax, [edi + ebx*4]
cmp dword [eax], 0
je 0x42d6db
mov ecx, dword [eax + 4]
inc ebx
mov dword [eax], ecx
add eax, 4
cmp dword [eax], 0
jne 0x42d6cd
lea eax, [ebx*4]
push eax
push edi
call fcn.00422e3f
add esp, 8
test eax, eax
je 0x42d732
jmp 0x42d72d
mov dword [edi + ebx*4], esi
jmp 0x42d732
cmp dword [esp + 0x10], 0
jne 0x42d7a1
test ebx, ebx
jge 0x42d708
neg ebx
lea eax, [ebx*4 + 8]
push eax
push edi
call fcn.00422e3f
add esp, 8
test eax, eax
je 0x42d7a5
lea ecx, [eax + ebx*4]
mov dword [ecx], esi
mov dword [ecx + 4], 0
mov dword [0x45be98], eax
cmp dword [esp + 0x1c], 0
je 0x42d79d
mov edi, esi
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.004230ac
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x42d79d
mov edi, esi
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x10], 1
sbb eax, eax
lea ecx, [ebp + ebx]
mov ebp, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov byte [ecx], 0
lea ecx, [ecx + 1]
and eax, ecx
push eax
push ebx
call ebp
push ebx
call fcn.00422be6
add esp, 4
xor eax, eax
jmp 0x42d7aa
xor eax, eax
jmp 0x42d7aa
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x42e666
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
mov esi, str.COMDLG32.DLL
lea edi, [esp + 0xc]
lea eax, [esp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42e865
push str.GetOpenFileNameA
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
call ebx
push str.GetOpenFileNameW
mov dword [0x45b174], eax
push edi
cmp eax, 1
sbb esi, esi
call ebx
inc esi
mov dword [0x45b178], eax
test esi, esi
je 0x42e6c1
mov esi, 1
test eax, eax
jne 0x42e6c3
xor esi, esi
push str.GetSaveFileNameA
push edi
call ebx
mov dword [0x45b17c], eax
test esi, esi
je 0x42e6dd
mov esi, 1
test eax, eax
jne 0x42e6df
xor esi, esi
push str.GetSaveFileNameW
push edi
call ebx
mov dword [0x45b180], eax
test esi, esi
je 0x42e6f9
mov esi, 1
test eax, eax
jne 0x42e6fb
xor esi, esi
push str.GetFileTitleA
push edi
call ebx
mov dword [0x45b184], eax
test esi, esi
je 0x42e715
mov esi, 1
test eax, eax
jne 0x42e717
xor esi, esi
push str.GetFileTitleW
push edi
call ebx
mov dword [0x45b188], eax
test esi, esi
je 0x42e731
mov esi, 1
test eax, eax
jne 0x42e733
xor esi, esi
push str.ChooseColorA
push edi
call ebx
mov dword [0x45b18c], eax
test esi, esi
je 0x42e74d
mov esi, 1
test eax, eax
jne 0x42e74f
xor esi, esi
push str.ChooseColorW
push edi
call ebx
mov dword [0x45b190], eax
test esi, esi
je 0x42e769
mov esi, 1
test eax, eax
jne 0x42e76b
xor esi, esi
push str.FindTextA
push edi
call ebx
mov dword [0x45b194], eax
test esi, esi
je 0x42e785
mov esi, 1
test eax, eax
jne 0x42e787
xor esi, esi
push str.FindTextW
push edi
call ebx
mov dword [0x45b198], eax
test esi, esi
je 0x42e7a1
mov esi, 1
test eax, eax
jne 0x42e7a3
xor esi, esi
push str.ReplaceTextA
push edi
call ebx
mov dword [0x45b19c], eax
test esi, esi
je 0x42e7bd
mov esi, 1
test eax, eax
jne 0x42e7bf
xor esi, esi
push str.ReplaceTextW
push edi
call ebx
mov dword [0x45b1a0], eax
test esi, esi
je 0x42e7d9
mov esi, 1
test eax, eax
jne 0x42e7db
xor esi, esi
push str.ChooseFontA
push edi
call ebx
mov dword [0x45b1a4], eax
test esi, esi
je 0x42e7f5
mov esi, 1
test eax, eax
jne 0x42e7f7
xor esi, esi
push str.ChooseFontW
push edi
call ebx
mov dword [0x45b1a8], eax
test esi, esi
je 0x42e811
mov esi, 1
test eax, eax
jne 0x42e813
xor esi, esi
push str.PrintDlgA
push edi
call ebx
mov dword [0x45b1ac], eax
test esi, esi
je 0x42e82d
mov esi, 1
test eax, eax
jne 0x42e82f
xor esi, esi
push str.PrintDlgW
push edi
call ebx
mov dword [0x45b1b0], eax
test esi, esi
je 0x42e849
mov esi, 1
test eax, eax
jne 0x42e84b
xor esi, esi
push str.CommDlgExtendedError
push edi
call ebx
mov dword [0x45b1b4], eax
test esi, esi
je 0x42e865
test eax, eax
mov eax, 1
jne 0x42e867
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x430860
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
cmp dword [eax + 4], 0x100
jne 0x4308a5
cmp dword [eax + 8], 0x70
jne 0x4308a5
mov eax, dword [eax + 0xc]
shr eax, 0x10
test ah, 0x40
jne 0x4308a5
push 0x10
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
call esi
test ax, ax
jl 0x4308a5
push 0x11
call esi
test ax, ax
jl 0x4308a5
push 0x12
call esi
test ax, ax
mov eax, 1
jge 0x4308a7
xor eax, eax
pop esi
ret 4

Function at 0x43229b
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
push dword [ecx + 0x1c]
mov esi, ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
mov edi, dword [esp + 0xc]
push ecx
push eax
mov ecx, edi
call fcn.00431352
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00431331
pop edi
pop esi
ret 4

Function at 0x4338ce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov edi, dword [ecx + 0x34]
test edi, edi
jne 0x4338e5
cmp dword [ecx + 0x38], 0
jne 0x4338e5
mov eax, 1
jmp 0x433943
mov esi, dword [ecx + 0x38]
test edi, edi
je 0x433915
mov esi, dword [0x44ab40]
push 5
push edi
push esi
call fcn.00437a26
test eax, eax
jne 0x433903
xor eax, eax
jmp 0x433943
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x433915
xor eax, eax
jmp 0x433943
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
test byte [eax], 1
jne 0x433934
cmp word [eax + 0xa], 0
jne 0x433934
cmp word [eax + 0xc], 0
mov ebx, 1
je 0x433936
xor ebx, ebx
test edi, edi
je 0x433941
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x433947
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 4
mov eax, dword [esp + 8]
push ebx
push esi
test eax, eax
push edi
mov esi, 1
push ebp
mov edi, ecx
je 0x433a03
mov ebx, dword [0x44ab40]
push 0xf0
push eax
push ebx
call fcn.00437a26
test eax, eax
je 0x433a03
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
call ebp
mov ebx, eax
test ebx, ebx
je 0x433a03
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov cx, word [eax]
test cx, cx
je 0x4339fc
add dword [esp + 0x10], 2
mov eax, dword [esp + 0x10]
add dword [esp + 0x10], 2
mov dx, word [eax]
mov eax, dword [esp + 0x10]
add dword [esp + 0x10], 4
cmp dx, 0x401
mov ebp, dword [eax]
jne 0x4339cb
mov dx, 0x180
jmp 0x4339d6
cmp dx, 0x403
jne 0x4339d6
mov dx, 0x143
push dword [esp + 0x10]
push 0
movzx edx, dx
movzx ecx, cx
push edx
push ecx
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
cmp eax, 0xffffffff
jne 0x4339f4
xor esi, esi
add dword [esp + 0x10], ebp
test esi, esi
jne 0x433996
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
test esi, esi
je 0x433a1c
push 0
push 0
push 0
push 0
push 0x364
push dword [edi + 0x1c]
call fcn.00432faf
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 4
Function at 0x43430f
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov ecx, esi
push dword [esi + 0x34]
call fcn.00433947
test eax, eax
jne 0x434324
xor eax, eax
jmp 0x43437c
push 0
mov ecx, esi
call fcn.00433692
test eax, eax
jne 0x434340
push 3
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_EndDialog]
xor eax, eax
jmp 0x43437c
push 0xe145
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.00431a1d
mov esi, eax
test esi, esi
je 0x434377
call fcn.004342ab
cmp eax, 1
mov eax, 0
adc eax, 0xffffffff
and eax, 5
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop esi
ret
Function at 0x434909
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
lea eax, [ebp - 8]
push esi
push edi
push eax
mov esi, dword [ebp + 8]
push esi
mov edi, dword [ebp + 0xc]
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push 0x104
test eax, eax
jne 0x434943
push edi
push esi
call fcn.004379e6
xor eax, eax
jmp 0x434ad9
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.0042342c
add esp, 0xc
lea eax, [ebp - 0x110]
push 0x104
push esi
push eax
call fcn.004379e6
cmp byte [ebp - 0x110], 0
lea eax, [ebp - 0x110]
je 0x4349b2
mov ebx, 0x5c
mov cl, byte [eax]
cmp cl, bl
jne 0x43498f
cmp byte [eax + 1], bl
je 0x4349b2
cmp cl, bl
jne 0x43498f
cmp byte [eax + 1], 0x2f
je 0x4349b2
cmp cl, 0x2f
jne 0x4349a4
cmp byte [eax + 1], bl
je 0x4349b2
cmp cl, 0x2f
jne 0x4349a4
cmp byte [eax + 1], 0x2f
je 0x4349b2
push eax
call fcn.0042392e
add esp, 4
cmp byte [eax], 0
jne 0x43497a
cmp byte [eax], 0
je 0x434a08
add eax, 2
cmp byte [eax], 0
je 0x4349e7
mov cl, byte [eax]
cmp cl, 0x5c
je 0x4349d9
cmp cl, 0x2f
je 0x4349d9
push eax
call fcn.0042392e
add esp, 4
cmp byte [eax], 0
jne 0x4349bf
cmp byte [eax], 0
je 0x434a31
push eax
call fcn.0042392e
add esp, 4
cmp byte [eax], 0
je 0x434a3a
mov cl, byte [eax]
cmp cl, 0x5c
je 0x434a31
cmp cl, 0x2f
je 0x434a31
push eax
call fcn.0042392e
add esp, 4
cmp byte [eax], 0
jne 0x4349ec
jmp 0x434a31
cmp byte [ebp - 0x110], 0
lea eax, [ebp - 0x110]
je 0x434a31
mov cl, byte [eax]
cmp cl, 0x5c
je 0x434a31
cmp cl, 0x2f
je 0x434a31
push eax
call fcn.0042392e
add esp, 4
cmp byte [eax], 0
jne 0x434a17
cmp byte [eax], 0
je 0x434a3a
mov byte [eax + 1], 0
push 0
lea eax, [ebp - 4]
push 0
lea ecx, [ebp - 0xc]
push eax
lea edx, [ebp - 0x110]
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x434a61
xor eax, eax
jmp 0x434ad9
test byte [ebp - 4], 4
jne 0x434ac7
test byte [ebp - 4], 2
jne 0x434a74
push esi
call dword [sym.imp.USER32.dll_CharUpperA]
lea eax, [ebp - 0x214]
push eax
push esi
call dword [sym.imp.USER32.dll_CharToOemA]
cmp dword [0x44bb28], 0
jne 0x434ab7
test byte [ebp - 4], 2
jne 0x434ab7
cmp byte [ebp - 0x214], 0
lea eax, [ebp - 0x214]
je 0x434ab7
mov cl, byte [eax]
cmp cl, 0x61
jl 0x434ab1
cmp cl, 0x7a
jg 0x434ab1
sub cl, 0x20
mov byte [eax], cl
inc eax
cmp byte [eax], 0
jne 0x434aa0
push esi
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.USER32.dll_OemToCharA]
jmp 0x434ad4
test byte [ebp - 4], 2
jne 0x434ad4
push esi
call dword [sym.imp.USER32.dll_CharUpperA]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x437b2f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
push edi
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x100
mov edi, eax
ja 0x437b78
push 0x100
lea eax, [ebp - 0x100]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, edi
jne 0x437b78
push esi
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x437b82
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x437c81
Capabilities:
Allocate thread local storage

Disassembly:
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_TlsAlloc]
call esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
je 0x437ca9
cmp al, 3
ja 0x437ca9
cmp edi, 2
ja 0x437ca9
call esi
mov edi, eax
jmp 0x437c9e
mov eax, edi
pop edi
pop esi
ret

Function at 0x43a3af
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push ebp
mov edi, ecx
and esi, 0x300000
call fcn.0043a397
cmp eax, esi
je 0x43a516
mov eax, esi
and esi, 0x200000
shr esi, 0x15
and eax, 0x100000
shr eax, 0x14
xor ebx, ebx
mov dword [edi + 0x64], eax
mov dword [edi + 0x68], esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [edi + 0x60], ebx
jle 0x43a446
lea ebp, [ebx + 0xea00]
push ebp
push dword [edi + 0x1c]
call esi
push eax
call fcn.00431a1d
test eax, eax
jne 0x43a42a
push ebp
mov eax, dword [edi]
push 0
mov ecx, edi
call dword [eax + pe_nt_image_headers32]
test eax, eax
jne 0x43a41e
call fcn.004388d8
push ebp
push dword [edi + 0x1c]
call esi
push eax
call fcn.00431a1d
cmp dword [edi + 0x64], 1
mov ecx, 0
adc ecx, 0xffffffff
inc ebx
and ecx, 5
push ecx
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x43a3ed
xor ebx, ebx
cmp dword [edi + 0x5c], ebx
jle 0x43a4a1
lea ebp, [ebx + 0xea10]
push ebp
push dword [edi + 0x1c]
call esi
push eax
call fcn.00431a1d
test eax, eax
jne 0x43a485
push ebp
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + pe_nt_image_headers32]
test eax, eax
jne 0x43a479
call fcn.004388d8
push ebp
push dword [edi + 0x1c]
call esi
push eax
call fcn.00431a1d
cmp dword [edi + 0x68], 1
mov ecx, 0
adc ecx, 0xffffffff
inc ebx
and ecx, 5
push ecx
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x43a448
cmp dword [edi + 0x68], 0
je 0x43a4fb
cmp dword [edi + 0x64], 0
je 0x43a4fb
push 0xea20
push dword [edi + 0x1c]
call esi
push eax
call fcn.00431a1d
test eax, eax
jne 0x43a4ee
push 0xea20
mov eax, dword [edi]
push 0x8000008
mov ecx, edi
call dword [eax + pe_nt_image_headers32]
test eax, eax
jne 0x43a4de
call fcn.004388d8
push 0xea20
push dword [edi + 0x1c]
call esi
push eax
call fcn.00431a1d
push 5
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x43a516
push 0xea20
push dword [edi + 0x1c]
call esi
push eax
call fcn.00431a1d
mov ecx, eax
test ecx, ecx
je 0x43a516
mov eax, dword [ecx]
call dword [eax + 0x34]
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x43da25
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x43da48
xor eax, eax
jmp 0x43db89
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x43da5f
xor eax, eax
jmp 0x43db89
mov ecx, dword [ebp - 0xc]
mov esi, dword [ecx]
add esi, 0x40
push esi
call fcn.004230ac
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x43da7e
xor eax, eax
jmp 0x43db89
push esi
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.00423470
add esp, 0xc
mov edx, dword [ebp - 4]
mov dword [ebp - 8], 0x10
mov esi, dword [edx]
add esi, edx
xor ecx, ecx
mov eax, 0x452c40
mov edx, dword [esi]
cmp dword [eax], edx
je 0x43dab5
add eax, 8
inc ecx
cmp eax, 0x452c60
jb 0x43daa4
jmp 0x43dae9
mov ebx, dword [ecx*8 + 0x452c44]
push ebx
call dword [sym.imp.USER32.dll_GetSysColor]
movzx edi, ah
shl edi, 8
push ebx
call dword [sym.imp.USER32.dll_GetSysColor]
shr eax, 0x10
push ebx
movzx ecx, al
or edi, ecx
call dword [sym.imp.USER32.dll_GetSysColor]
movzx eax, al
shl eax, 0x10
or edi, eax
mov dword [esi], edi
add esi, 4
dec dword [ebp - 8]
jne 0x43da9b
mov edx, dword [ebp - 4]
push 0
mov edi, dword [edx + 4]
mov ebx, dword [edx + 8]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push ebx
push edi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push esi
mov dword [ebp - 8], eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp - 8], 0
je 0x43db72
push dword [ebp - 8]
push dword [0x45a858]
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, eax
mov edx, dword [ebp - 4]
mov eax, 1
push 0xcc0020
mov cl, byte [edx + 0xe]
push 0
shl eax, cl
mov ecx, dword [ebp - 0xc]
push edx
lea eax, [ecx + eax*4 + 0x28]
push eax
push ebx
push edi
push 0
push 0
mov eax, dword [0x45a858]
push ebx
push edi
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_StretchDIBits]
push esi
mov eax, dword [0x45a858]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 4]
call fcn.00422be6
add esp, 4
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8