joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48b420
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x4cc8e4]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x48b433
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x48b474
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x4cc98c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x48b4a6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x48b4aa
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x48b49b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x48b4c8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x48b4cc
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x48b4bd
xor ecx, ecx
mov eax, 0x4cc8f4
xor ebx, ebx
mov bl, byte [ecx + 0x4cc99c]
cmp byte [esp + ebx + 0x14], 0
je 0x48b4f7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x4cc9b4]
cmp byte [esp + ebx + 0x14], 0
je 0x48b50e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x48b4de
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x48b467
lea edx, [esp + 0x84]
push edx
call fcn.0048b550
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x48fbb0
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 8]
push esi
test edx, edx
push edi
je 0x48fc4b
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x48fc4b
push 0x4ce914
push edx
call sub.MSVCRT.dll_fopen
mov esi, eax
add esp, 8
test esi, esi
je 0x48fc4b
push ebx
push ebp
push 2
push 0
push esi
mov bl, 1
call sub.MSVCRT.dll_fseek
push esi
call sub.MSVCRT.dll_ftell
mov ebp, dword [esp + 0x24]
mov edi, eax
push 0
push edi
push ebp
call fcn.0048f890
add esp, 0x1c
test al, al
je 0x48fc39
push esi
call sub.MSVCRT.dll_rewind
mov eax, dword [ebp]
push esi
push edi
push 1
push eax
call sub.MSVCRT.dll_fread
add esp, 0x14
cmp eax, edi
je 0x48fc26
xor bl, bl
push esi
mov dword [ebp + 4], eax
call sub.MSVCRT.dll_fclose
add esp, 4
mov al, bl
pop ebp
pop ebx
pop edi
pop esi
ret
push esi
xor bl, bl
call sub.MSVCRT.dll_fclose
add esp, 4
mov al, bl
pop ebp
pop ebx
pop edi
pop esi
ret
pop edi
xor al, al
pop esi
ret

Function at 0x48fc50
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
push ebp
test edx, edx
push edi
je 0x48fcc3
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x48fcc3
push 0x4ce918
push edx
call sub.MSVCRT.dll_fopen
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x48fcc3
mov edi, dword [esp + 0xc]
push ebx
push esi
push edi
mov bl, 1
call fcn.0048ff30
mov esi, eax
add esp, 4
test esi, esi
jle 0x48fcb3
push ebp
push esi
push 1
push 0
push 0
push edi
call fcn.0048fa00
add esp, 0xc
push eax
call sub.MSVCRT.dll_fwrite
add esp, 0x10
cmp eax, esi
je 0x48fcb3
xor bl, bl
push ebp
call sub.MSVCRT.dll_fclose
add esp, 4
mov al, bl
pop esi
pop ebx
pop edi
pop ebp
ret
pop edi
xor al, al
pop ebp
ret
Function at 0x401070
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40108b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4010c2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4010be
jmp 0x4010b0
cmp esi, eax
jae 0x4010c2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4010b0
cmp esi, eax
jb 0x4010c9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401120
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x5b47a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push str.4976172849618296785
push str.C:ProgramData_f93618e93beb4a4181526d7a38c169a4.dat
call fcn.00407610
mov edi, eax
add esp, 8
test edi, edi
je 0x401167
push esi
push edi
call fcn.00405a30
add esp, 8
test eax, eax
je 0x401179
push edi
call fcn.00407990
add esp, 4
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fff81
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x130]
push eax
push 0xffffffffffffffff
push edi
call fcn.004059e0
add esp, 0xc
test eax, eax
jne 0x40115e
push ebx
mov ebx, dword [ebp - 0x130]
xor esi, esi
test ebx, ebx
jle 0x4011c4
lea esp, [esp]
lea ecx, [ebp - 0x130]
push ecx
push esi
push edi
call fcn.004059e0
lea edx, [ebp - 0x12c]
push edx
push esi
push edi
call fcn.00407630
inc esi
add esp, 0x18
cmp esi, ebx
jl 0x4011a0
push edi
call fcn.00407990
add esp, 4
push str.C:ProgramData_f93618e93beb4a4181526d7a38c169a4.dat
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.004fff81
mov esp, ebp
pop ebp
ret

Function at 0x4011f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push edi
call fcn.00553d55
mov eax, dword [ebp + 0x10]
add esp, 8
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401210
sub eax, edx
push 0x562fbc
push edi
mov dword [ebp - 8], eax
call fcn.005005b5
mov edi, eax
mov eax, dword [ebp + 0xc]
push 0x562fb8
push eax
call fcn.005005b5
push edi
mov ebx, eax
call fcn.005004a9
add esp, 0x14
test eax, eax
jne 0x40128f
push edi
push 1
lea ecx, [ebp - 1]
push 1
push ecx
call fcn.0050048c
push edi
call fcn.005004a9
add esp, 0x14
test eax, eax
jne 0x401282
mov eax, esi
cdq
idiv dword [ebp - 8]
mov eax, dword [ebp + 0x10]
push ebx
push 1
push 1
mov cl, byte [edx + eax]
xor byte [ebp - 1], cl
lea edx, [ebp - 1]
push edx
call fcn.005001c8
add esp, 0x10
inc esi
push edi
call fcn.005004a9
add esp, 4
test eax, eax
je 0x401246
push edi
call fcn.004ffffd
push ebx
call fcn.004ffffd
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402c90
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5b47a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x24], 0x10
lea eax, [esi + 0x10]
jb 0x402cae
mov eax, dword [eax]
push eax
mov eax, dword [esi + 4]
push 0x2712
push eax
call fcn.0051a010
add esp, 0xc
push 0xbb
push str.Mozilla_5.0__Windows_NT_6.1__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_81.0.4044.138_Safari_537.36_NetType_WIFI_MicroMessenger_7.0.20.1781_0x6700143B__WindowsWechat_0x63070517_
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x20], 0
call fcn.00401bf0
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x402cf0
lea eax, [ebp - 0x20]
mov ecx, dword [esi + 4]
push eax
push 0x2722
push ecx
call fcn.0051a010
mov edx, dword [esi + 4]
push 5
push 0x44
push edx
call fcn.0051a010
mov eax, dword [esi + 4]
push 1
push 0x34
push eax
call fcn.0051a010
mov ecx, dword [esi + 4]
push 1
push 0x63
push ecx
call fcn.0051a010
mov edx, dword [esi + 4]
push 0
push 0x2f
push edx
call fcn.0051a010
mov eax, dword [esi + 4]
push 0x3c
push 0x4e
push eax
call fcn.0051a010
mov ecx, dword [esi + 4]
add esp, 0x48
push 0x402af0
push 0x4e2b
push ecx
call fcn.0051a010
mov edx, dword [esi + 4]
push esi
push 0x2711
push edx
call fcn.0051a010
mov eax, dword [esi + 4]
push 0
push 0x2b
push eax
call fcn.0051a010
mov ecx, dword [esi + 4]
push esi
push 0x2749
push ecx
call fcn.0051a010
mov edx, dword [esi + 4]
push fcn.004013a0
push 0x4e58
push edx
call fcn.0051a010
mov eax, dword [esi + 4]
push 0
push 0x40
push eax
call fcn.0051a010
mov ecx, dword [esi + 4]
add esp, 0x48
push 0
push 0x51
push ecx
call fcn.0051a010
add esp, 0xc
cmp dword [ebp - 0xc], 0x10
pop esi
jb 0x402dc7
mov edx, dword [ebp - 0x20]
push edx
call fcn.00407a9d
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fff81
mov esp, ebp
pop ebp
ret
Function at 0x4041c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4041ce
xor eax, eax
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
not eax
cmp edx, 8
jb 0x4042ad
mov esi, edx
shr esi, 3
push edi
jmp 0x4041f0
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x565038]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x565038]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x565038]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x565038]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x565038]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x565038]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x565038]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x565038]
add ecx, 8
sub edx, 8
dec esi
jne 0x4041f0
pop edi
test edx, edx
je 0x4042ca
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x565038]
inc ecx
dec edx
jne 0x4042b1
not eax
pop esi
pop ebp
ret

Function at 0x4042d0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movsx ecx, byte [ebp + 0xc]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x565038]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x565038]
mov dword [edx + 8], ecx
pop ebp
ret

Function at 0x404320
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 8]
mov eax, ecx
and eax, 0xfffd
or eax, 2
mov edx, eax
xor edx, 1
imul edx, eax
mov al, byte [ebp + 0xc]
shr edx, 8
xor al, dl
mov edx, dword [esi]
push edi
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x565038]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x565038]
pop edi
mov dword [esi + 8], ecx
pop esi
pop ebx
pop ebp
ret
Function at 0x404720
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ebx
imul esi, dword [ebp + 0x10]
cmp byte [edi], 0
je 0x404760
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404754
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
pop ebp
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x404771
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.004ff8b0
add dword [edi + 0x1c], esi
add esp, 0xc
pop edi
mov eax, esi
xor edx, edx
pop esi
div ebx
pop ebx
pop ebp
ret
Function at 0x404940
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, dword [ebp + 8]
cmp byte [esi], 0
je 0x40498b
cmp byte [esi + 1], 0
je 0x404993
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x4049a7
cmp byte [esi + 1], 0
je 0x40499b
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 0xc]
mov dword [ebp + 8], ebx
jmp 0x4049af
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x404965
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp + 8], 0
mov ebx, dword [ebp + 8]
jmp 0x4049af
mov eax, dword [esi + 0x1c]
mov dword [ebp + 8], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 4], edi
cmp ebx, edi
jae 0x4049c1
mov dword [ebp - 4], ebx
mov edi, ebx
push 0x404
call fcn.005013d6
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4049df
pop edi
pop ebx
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x10], 0xffffffff
cmp edi, eax
jbe 0x404aed
jmp 0x4049fe
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 8]
add eax, 0x400
mov dword [ebp - 8], edi
cmp eax, edi
ja 0x404a0d
mov dword [ebp - 8], eax
mov eax, ebx
sub eax, dword [ebp - 8]
sub ebx, eax
mov dword [ebp - 0x18], eax
cmp ebx, 0x404
jbe 0x404a24
mov ebx, 0x404
cmp byte [esi], 0
je 0x404a49
cmp byte [esi + 1], 0
je 0x404aed
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x404a4c
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebx
je 0x404a75
mov ecx, dword [ebp - 0xc]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404a70
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x14]
jmp 0x404a9e
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x404a86
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 0xc]
push edi
add ecx, eax
push ecx
push edx
call fcn.004ff8b0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x404aed
lea eax, [ebx - 3]
test eax, eax
js 0x404adb
mov edi, edi
mov ecx, dword [ebp - 0xc]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x404acf
cmp byte [eax + ecx + 1], 0x4b
jne 0x404acf
cmp byte [eax + ecx + 2], 5
jne 0x404acf
cmp byte [eax + ecx + 3], 6
je 0x404ad5
test eax, eax
jns 0x404ab0
jmp 0x404adb
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x404aed
mov edx, dword [ebp - 4]
cmp dword [ebp - 8], edx
jb 0x4049f5
mov eax, dword [ebp - 0xc]
push eax
call fcn.0050139c
mov eax, dword [ebp - 0x10]
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4058e0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5b47a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x405914
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x405914
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebx]
test al, al
je 0x4059ce
push esi
mov esi, ebx
mov ecx, ebx
cmp al, 0x2f
je 0x40592b
cmp al, 0x5c
jne 0x40592d
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x405923
cmp esi, ebx
je 0x405961
sub esi, ebx
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004ff8b0
lea ecx, [ebp - 0x20c]
push ecx
push edi
mov byte [ebp + esi - 0x20c], 0
call fcn.004058e0
add esp, 0x14
mov byte [ebp - 0x108], 0
test edi, edi
je 0x405980
lea edx, [ebp - 0x108]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x405976
mov eax, ebx
mov edx, ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405984
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405994
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [ebp - 0x108]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop esi
cmp eax, 0xffffffff
jne 0x4059ce
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004fff81
mov esp, ebp
pop ebp
ret

Function at 0x407480
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
cmp dword [ebx], 0
jne 0x40754b
cmp dword [ebx + 4], 0xffffffff
jne 0x40754b
push edi
lea edi, [ebx + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4074b1
sub eax, edx
mov al, byte [eax + ebx + 0x13f]
cmp al, 0x5c
je 0x4074e1
cmp al, 0x2f
je 0x4074e1
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4074d0
mov ax, word [0x5632a4]
mov word [edi], ax
mov edi, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
cmp edi, 1
jne 0x40750b
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40750b
pop esi
pop edi
mov eax, 0x2000000
pop ebx
pop ebp
ret 0xc
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
push ecx
push edi
push edx
push esi
call fcn.00404610
add esp, 0x10
test eax, eax
jne 0x40752b
mov eax, dword [ebp + 0x10]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
push eax
call fcn.00406ea0
add esp, 4
mov dword [ebx], eax
neg eax
sbb eax, eax
pop esi
and eax, 0xfffffe00
pop edi
add eax, 0x200
pop ebx
pop ebp
ret 0xc
mov eax, 0x1000000
pop ebx
pop ebp
ret 0xc
Function at 0x40fca3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0042ebc1
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40fcdc
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0040f8e5
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x40fd3a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x40fd5e
cmp dword [edi + 0x74], 0
jne 0x40fd5e
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0042ebc1
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
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040fcfb
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x416583
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4165ca
call fcn.0042ebc1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4165ca
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4165e6
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00416088
mov esi, eax
test edi, edi
je 0x4165e4
test ebx, ebx
je 0x4165e4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4169c5
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x559d4a
call fcn.0050183f
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x4169ea
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x416a3c
call fcn.0040c7a8
push eax
lea ecx, [ebp - 0x10]
call fcn.00401680
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00503e1f
push eax
call fcn.00409c7d
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004012d0
mov eax, esi
call fcn.00501917
ret 8
Function at 0x419ba4
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00419863
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x419bee
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040c6a2
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00407fda
jmp 0x419bf9
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00458e82
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x419bff
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0041668f
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x419c3c
call fcn.00419863
mov dword [esi + 0xc], 1
jmp 0x419c41
call fcn.00419863
cmp dword [esi], 0
je 0x419c8a
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x419c62
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040c6a2
jmp 0x419c74
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.004018b0
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00407fda
jmp 0x419cae
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x419cae
push dword [esi]
push dword [ebp + 8]
call fcn.00458e82
pop esi
pop ebp
ret 0xc

Function at 0x455c7c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x455c96
call fcn.0042ebc1
mov esi, dword [eax + 0xc]
push dword [0x5b96d0]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x455cb4
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x455cac
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x455ce1
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x455cae
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00455baa
mov esi, eax
jmp 0x455cd3