joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411cce
Capabilities:
Create thread

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x411ce1
mov eax, 0x4df
call fcn.00411cbf
jmp 0x411d2b
cmp dword [esp + 8], edi
jne 0x411cee
mov eax, 0x80004003
jmp 0x411d2b
push edi
push 4
push dword [esp + 0x10]
push 0x411d2f
push edi
push edi
call fcn.0041c9bc
add esp, 0x18
cmp eax, edi
mov dword [esi], eax
jne 0x411d22
call dword [0x430278]
test eax, eax
je 0x411d1b
call fcn.00402709
jmp 0x411d2b
mov eax, 0x80004005
jmp 0x411d2b
push eax
call dword [0x43026c]
xor eax, eax
pop edi
ret 4

Function at 0x411d5c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [0x430010]
test eax, eax
jne 0x411dbf
cmp dword [ebp + 0xc], 1
je 0x411d98
cmp dword [ebp + 0xc], 2
je 0x411d98
push 0xd
pop eax
jmp 0x411dbf
test edi, edi
mov eax, dword [ebp - 4]
je 0x411db9
test eax, eax
je 0x411db5
test al, 1
jne 0x411d93
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x411db9
jmp 0x411d93
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x41217a
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x43b044]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x1c], eax
mov esi, ecx
call dword [section..data]
test esi, esi
mov ebx, eax
je 0x4121b0
push esi
call dword [0x4302e4]
inc eax
cmp eax, 0x3fffffff
jle 0x4121b4
xor esi, esi
jmp 0x4121cc
lea edi, [eax + eax]
mov eax, edi
call fcn.0042aa60
mov eax, esp
push ebx
push edi
push esi
mov esi, eax
call fcn.00412517
mov esi, eax
push 0x10
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.0041c280
add esp, 0xc
push 0x7b
mov word [ebp - 0x18], 2
call dword [0x430470]
push esi
mov word [ebp - 0x16], ax
call dword [0x430474]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x412212
push esi
call dword [0x430478]
test eax, eax
je 0x41223c
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
push 0x10
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push dword [eax]
call dword [0x43047c]
neg eax
sbb eax, eax
inc eax
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041c1e3
leave
ret 4
xor eax, eax
jmp 0x412228

Function at 0x412240
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [ebp - 0x10c], 1
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x108], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x10c]
push eax
push 0
mov dword [ebp - 4], edx
call dword [0x43048c]
cmp eax, 0xffffffff
jne 0x41228d
xor eax, eax
jmp 0x41229c
xor ecx, ecx
test eax, eax
mov eax, dword [ebp + 0xc]
setne cl
mov dword [eax], ecx
xor eax, eax
inc eax
leave
ret 8
Function at 0x412f2e
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push dword [esi + 0x4c]
push dword [esi + 0xc]
call dword [0x4302d0]
test eax, eax
je 0x412f52
mov dword [esi + 0x48], 0x2749
xor al, al
jmp 0x41301a
push ebx
xor ebx, ebx
push ebx
push dword [esi + 4]
call dword [0x4302d0]
cmp eax, 0x80
jne 0x412f74
mov dword [esi + 0x48], 0x2734
xor al, al
jmp 0x413019
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [edi]
push 0x14
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
push ebx
push eax
mov dword [edi], ebx
mov dword [ebp - 4], ebx
call fcn.0041c280
lea eax, [esi + 0x10]
add esp, 0xc
push eax
mov dword [ebp + 8], eax
call dword [0x430260]
mov eax, dword [esi + 4]
push eax
mov dword [ebp - 0x10], eax
call dword [0x4304c4]
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 1
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0x40]
call dword [0x4304b4]
test eax, eax
je 0x412fd7
call dword [0x4304cc]
cmp eax, 0x3e5
jne 0x41300b
push dword [esi + 0x4c]
push dword [ebp - 0x10]
call dword [0x4302d0]
test eax, eax
jne 0x41300e
lea eax, [ebp - 4]
push eax
push ebx
push edi
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x40]
mov dword [ebp - 4], ebx
call dword [0x43049c]
test eax, eax
je 0x413005
mov bl, 1
jmp 0x41300e
call dword [0x430278]
mov dword [esi + 0x48], eax
push dword [ebp + 8]
call dword [0x430258]
mov al, bl
pop ebx
leave
ret 4
Function at 0x4130a2
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x43b044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
add edi, 4
mov eax, dword [edi]
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x18], edi
je 0x4130ce
push eax
call dword [0x4304a0]
mov dword [edi], esi
push 0x20
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.0041c280
add esp, 0xc
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], esi
call dword [section..data]
cmp dword [ebp + 8], esi
mov edi, dword [0x4302e4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], esi
mov ebx, 0x80000000
je 0x41312d
push dword [ebp + 8]
call edi
push esi
inc eax
cdq
push 2
push edx
push eax
call fcn.00428c30
mov ecx, eax
add eax, ebx
adc edx, esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], edx
jne 0x41312d
cmp eax, 0xffffffff
jbe 0x413132
mov dword [ebp - 0xc], esi
jmp 0x413171
cmp ecx, 0x400
jg 0x413151
push ecx
call fcn.00413256
test al, al
pop ecx
je 0x413151
mov eax, dword [ebp - 0x10]
call fcn.0042aa60
mov eax, esp
jmp 0x41315c
push dword [ebp - 0x10]
lea esi, [ebp - 8]
call fcn.004132cb
push dword [ebp - 0x14]
mov esi, eax
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.00412517
mov dword [ebp - 0xc], eax
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x413197
push dword [ebp + 0xc]
call edi
push esi
inc eax
cdq
push 2
push edx
push eax
call fcn.00428c30
mov edi, eax
add eax, ebx
adc edx, esi
mov dword [ebp - 0x1c], edx
jne 0x413197
cmp eax, 0xffffffff
jbe 0x41319b
xor eax, eax
jmp 0x4131d2
cmp edi, 0x400
jg 0x4131b9
push edi
call fcn.00413256
test al, al
pop ecx
je 0x4131b9
mov eax, edi
call fcn.0042aa60
mov eax, esp
jmp 0x4131c2
push edi
lea esi, [ebp - 8]
call fcn.004132cb
push dword [ebp - 0x14]
mov esi, eax
push edi
push dword [ebp + 0xc]
call fcn.00412517
xor esi, esi
cmp dword [ebp - 0xc], esi
je 0x41320a
cmp eax, esi
je 0x41320a
push dword [ebp - 0x18]
lea ecx, [ebp - 0x40]
push ecx
push eax
push dword [ebp - 0xc]
call dword [0x430490]
cmp dword [ebp - 8], esi
mov ebx, eax
je 0x413206
mov eax, dword [ebp - 8]
mov edi, dword [eax]
push eax
mov dword [ebp - 8], edi
call fcn.0041c722
cmp edi, esi
pop ecx
jne 0x4131f3
mov eax, ebx
jmp 0x41322d
push 8
call dword [0x430498]
cmp dword [ebp - 8], esi
je 0x41322a
mov eax, dword [ebp - 8]
mov edi, dword [eax]
push eax
mov dword [ebp - 8], edi
call fcn.0041c722
cmp edi, esi
pop ecx
jne 0x413217
or eax, 0xffffffff
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c1e3
leave
ret 8
Function at 0x4133ca
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
xor ebx, ebx
cmp byte [esi + 0x44], bl
je 0x4133dc
mov al, 1
jmp 0x41344e
mov eax, dword [esi + 0x40]
cmp eax, 0xffffffff
mov byte [ebp - 1], 1
jne 0x4133ec
xor al, al
jmp 0x41344e
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [0x4304bc]
test eax, eax
je 0x413448
call dword [0x4304cc]
cmp eax, 0x2733
jne 0x413442
push dword [esi + 0x4c]
push dword [esi + 0xc]
call dword [0x4302d0]
test eax, eax
jne 0x413445
push 0x2c
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.0041c280
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
push ebx
push dword [esi + 0x40]
call dword [0x4304c0]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x413448
mov dword [esi + 0x48], eax
mov byte [ebp - 1], bl
mov al, byte [ebp - 1]
mov byte [esi + 0x44], al
pop ebx
leave
ret 8

Function at 0x4135e8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + 0x50]
push 0x14
call fcn.0040441f
test eax, eax
jne 0x41366c
lea eax, [ebp - 4]
push eax
push 0x20006
xor esi, esi
and dword [ebp - 4], esi
push esi
push str.SoftwareKingsoftAntivirus
push 0x80000001
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], vtable.CRegKeyHepler.0
call dword [0x430018]
test eax, eax
jne 0x413633
mov esi, dword [ebp - 4]
mov dword [ebp - 8], esi
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push str.ReminiSysTimeErr
push esi
mov dword [ebp - 4], 1
call dword [0x430014]
test esi, esi
je 0x41365f
push esi
call dword [0x43001c]
and dword [ebp - 8], 0
lea ecx, [ebp - 0xc]
call fcn.00401e7c
mov esi, dword [ebp + 8]
jmp 0x413673
push 0
call fcn.00413695
push 0x16
lea eax, [esi + 0x50]
call fcn.0040441f
test eax, eax
mov eax, esi
je 0x413688
xor ecx, ecx
inc ecx
jmp 0x41368b
push 2
pop ecx
call fcn.004137aa
pop esi
leave
ret 4

Function at 0x413aa7
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 0x20], 0
and dword [ebp - 0x10], 0
push edi
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0
push str.Shell_TrayWnd
stosd dword es:[edi], eax
call dword [0x4303ac]
mov edi, dword [0x430458]
lea ecx, [ebp - 0x20]
push ecx
push eax
call edi
call dword [0x430448]
lea ecx, [ebp - 0x10]
push ecx
push eax
call edi
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x413b05
lea ecx, [eax - 0x160]
add eax, 0xfffffffe
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
jmp 0x413b36
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x413b1f
mov ecx, dword [ebp - 8]
lea edx, [ecx - 0x160]
add ecx, 0xfffffffe
mov dword [esi], edx
mov dword [esi + 8], ecx
jmp 0x413b38
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x18], eax
lea ecx, [eax - 0x160]
je 0x413afa
add eax, 0xfffffffe
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esi], ecx
lea ecx, [eax - 0xfc]
add eax, 0xfffffffe
mov dword [esi + 0xc], eax
mov dword [esi + 4], ecx
pop edi
leave
ret
Function at 0x413fb4
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42f395
mov eax, dword fs:[0]
push eax
sub esp, 0x4c8
mov eax, dword [0x43b044]
xor eax, esp
mov dword [esp + 0x4c0], eax
push ebx
push esi
push edi
mov eax, dword [0x43b044]
xor eax, esp
push eax
lea eax, [esp + 0x4d8]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10]
push str.Global77A5B383_E094_438f_8674_EF41785CD650
push 1
xor esi, esi
push esi
call dword [0x430228]
call dword [0x430278]
cmp eax, 0xb7
jne 0x414051
push 0x432e2c
push esi
call dword [0x4303ac]
mov edi, eax
cmp edi, esi
je 0x41404a
push edi
call dword [0x430400]
test eax, eax
je 0x41403a
push 9
push edi
call dword [0x4303c0]
push edi
call dword [0x4303fc]
push 1
push eax
call dword [0x4303b4]
xor eax, eax
jmp 0x414117
call fcn.00413c68
push esi
call dword [0x43051c]
lea eax, [esp + 0x33c]
push eax
push 0x202
call dword [0x4304c8]
push 0x8004
call dword [0x430218]
push esi
push esi
push esi
push esi
call dword [0x430338]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 8
mov dword [esp + 0x1c], 4
call dword [0x430078]
call fcn.004168a0
push edi
lea eax, [esp + 0x18]
push eax
xor ebx, ebx
mov dword [esp + 0x1c], esi
call fcn.0041385e
test eax, eax
je 0x4140d1
call fcn.004138c6
inc ebx
cmp eax, ebx
jne 0x4140cf
call fcn.004139ef
test eax, eax
jne 0x4140d7
jmp 0x414104
xor ebx, ebx
cmp dword [esp + 0x14], esi
je 0x414104
lea eax, [esp + 0x1c]
push eax
call fcn.004038f0
lea eax, [esp + 0x1c]
mov dword [esp + 0x4e0], esi
call fcn.0041413d
or dword [esp + 0x4e0], 0xffffffff
lea esi, [esp + 0x1c]
mov ebx, eax
call fcn.004039bd
call fcn.00416722
call dword [0x430494]
call dword [0x430524]
mov eax, ebx
mov ecx, dword [esp + 0x4d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c0]
xor ecx, esp
call fcn.0041c1e3
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41413d
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [0x43f558]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x1c], esi
je 0x41415a
mov ebx, dword [eax + 4]
jmp 0x41415c
xor ebx, ebx
cmp ebx, esi
jne 0x41416c
call dword [0x4303f4]
mov ebx, eax
cmp ebx, esi
je 0x414191
call dword [0x430448]
cmp ebx, eax
je 0x414191
push ebx
call dword [0x430450]
test eax, eax
je 0x414191
push esi
push ebx
call dword [0x430444]
mov dword [esp + 0x1c], 1
push ebx
mov dword [edi + 0x2fc], esi
call fcn.00414431
mov ecx, eax
cmp ecx, esi
mov dword [esp + 0x18], ecx
jne 0x4141b7
push 1
push ebx
call dword [0x430444]
xor eax, eax
jmp 0x4142a8
mov eax, dword [0x43f558]
cmp eax, esi
mov dword [esp + 0x20], esi
je 0x4141ce
mov edx, dword [eax + 4]
mov dword [esp + 0x20], edx
mov dword [eax + 4], ecx
lea eax, [edi + 4]
push eax
mov eax, ebx
call fcn.00411845
cmp dword [edi + 0x2f8], esi
je 0x414249
push esi
call dword [0x430428]
push eax
call dword [0x430430]
mov ebp, eax
call dword [0x430264]
push esi
push esi
push esi
push 0x2001
mov dword [esp + 0x24], eax
call dword [0x430424]
push 0x43
push esi
push esi
push esi
push esi
push esi
push dword [esp + 0x30]
call dword [0x430414]
cmp ebp, dword [esp + 0x14]
je 0x41422d
push 1
push ebp
push dword [esp + 0x1c]
call dword [0x43040c]
push dword [esp + 0x18]
call dword [0x43032c]
cmp ebp, dword [esp + 0x14]
je 0x414249
push esi
push ebp
push dword [esp + 0x1c]
call dword [0x43040c]
call fcn.004045c1
push 0x97
push esi
push esi
push esi
push esi
push esi
push dword [edi + 4]
mov dword [edi + 0x2fc], esi
call dword [0x430414]
cmp dword [esp + 0x1c], esi
je 0x41428c
push 1
push ebx
call dword [0x430444]
cmp ebx, esi
je 0x41428c
call dword [0x4303f4]
cmp eax, dword [edi + 4]
jne 0x41428c
push ebx
call dword [0x430324]
mov eax, dword [0x43f558]
cmp eax, esi
je 0x41429c
mov ecx, dword [esp + 0x20]
mov dword [eax + 4], ecx
push dword [edi + 4]
call dword [0x430348]
mov eax, dword [edi + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4142b0
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [0x43f558]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x18], esi
je 0x4142cd
mov ebp, dword [eax + 4]
jmp 0x4142cf
xor ebp, ebp
cmp ebp, esi
jne 0x4142df
call dword [0x4303f4]
mov ebp, eax
cmp ebp, esi
je 0x414304
call dword [0x430448]
cmp ebp, eax
je 0x414304
push ebp
call dword [0x430450]
test eax, eax
je 0x414304
push esi
push ebp
call dword [0x430444]
mov dword [esp + 0x18], 1
push dword [esp + 0x24]
mov ebx, edi
push ebp
mov dword [edi + 0x2fc], esi
call fcn.0041456a
mov ecx, eax
cmp ecx, esi
mov dword [esp + 0x14], ecx
jne 0x414330
push 1
push ebp
call dword [0x430444]
xor eax, eax
jmp 0x414427
mov eax, dword [0x43f558]
cmp eax, esi
mov dword [esp + 0x1c], esi
je 0x414347
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov dword [eax + 4], ecx
cmp dword [esp + 0x24], esi
jne 0x414358
lea eax, [edi + 4]
push eax
mov eax, ebp
call fcn.00411845
cmp dword [edi + 0x2f8], esi
je 0x4143c8
push esi
call dword [0x430428]
push eax
call dword [0x430430]
mov ebx, eax
call dword [0x430264]
push esi
push esi
push esi
push 0x2001
mov dword [esp + 0x34], eax
call dword [0x430424]
push 0x43
push esi
push esi
push esi
push esi
push esi
push dword [esp + 0x2c]
call dword [0x430414]
cmp ebx, dword [esp + 0x24]
je 0x4143ac
push 1
push ebx
push dword [esp + 0x2c]
call dword [0x43040c]
push dword [esp + 0x14]
call dword [0x43032c]
cmp ebx, dword [esp + 0x24]
je 0x4143c8
push esi
push ebx
push dword [esp + 0x2c]
call dword [0x43040c]
call fcn.004045c1
push 0x97
push esi
push esi
push esi
push esi
push esi
push dword [edi + 4]
mov dword [edi + 0x2fc], esi
call dword [0x430414]
cmp dword [esp + 0x18], esi
je 0x41440b
push 1
push ebp
call dword [0x430444]
cmp ebp, esi
je 0x41440b
call dword [0x4303f4]
cmp eax, dword [edi + 4]
jne 0x41440b
push ebp
call dword [0x430324]
mov eax, dword [0x43f558]
cmp eax, esi
je 0x41441b
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
push dword [edi + 4]
call dword [0x430348]
mov eax, dword [edi + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x416228
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x41623b
push 0x80004005
call fcn.00402758
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [0x4302e4]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x416242
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [0x430014]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x416310
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x43b044]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea edx, [ebp - 0x214]
push edx
push 0x2001f
mov eax, ecx
mov ecx, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x220], eax
mov eax, dword [eax]
push ecx
push eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x214], esi
call dword [0x430018]
mov ebx, dword [0x43001c]
mov edi, eax
cmp edi, esi
jne 0x41642d
xor eax, eax
cmp dword [ebp - 0x210], esi
je 0x41637e
push dword [ebp - 0x210]
call ebx
cmp eax, esi
mov ecx, dword [ebp - 0x214]
mov edi, eax
mov dword [ebp - 0x210], ecx
jne 0x41642d
mov edi, dword [0x43000c]
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push ecx
jmp 0x4163f1
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x210]
call fcn.00416310
cmp eax, esi
mov dword [ebp - 0x214], eax
jne 0x416450
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x210]
mov dword [ebp - 0x218], pe_nt_image_headers32
call edi
test eax, eax
je 0x4163b6
cmp dword [ebp - 0x210], esi
je 0x416417
push dword [ebp - 0x210]
call ebx
mov dword [ebp - 0x210], esi
push dword [ebp - 0x21c]
mov eax, dword [ebp - 0x220]
push dword [eax]
call dword [0x430004]
mov edi, eax
cmp dword [ebp - 0x210], esi
je 0x41643d
push dword [ebp - 0x210]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c1e3
leave
ret 4
cmp dword [ebp - 0x210], esi
je 0x416460
push dword [ebp - 0x210]
call ebx
mov eax, dword [ebp - 0x214]
jmp 0x41643f
Function at 0x401130
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41aca7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov dword [esp + 0xc], 0
mov edx, dword [0x4242e0]
xor eax, eax
xor ecx, ecx
mov byte [esp + 0x10], 0
mov dword [esp + 0x11], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x15], eax
mov ebx, 1
mov dword [esp + 0x14], ecx
mov byte [esp + 0x19], al
mov dword [esp + 0x24], ebx
mov word [esp + 0x18], cx
mov dword [esp + 8], edx
mov eax, dword [esp + 0x30]
push 0x424110
push eax
mov byte [esp + 0x2c], 2
call fcn.00403a1b
mov esi, eax
add esp, 8
test esi, esi
jne 0x4011ba
mov esi, dword [esp + 0x2c]
push 0x427d40
mov ecx, esi
call fcn.00413257
mov dword [esp + 0xc], ebx
jmp 0x40121c
push esi
push ebx
lea ecx, [esp + 0x18]
push ebx
push ecx
call fcn.004038d3
add esp, 0x10
test eax, eax
je 0x4011ff
lea edx, [esp + 0x10]
lea ecx, [esp + 8]
push edx
call fcn.00413538
xor eax, eax
push esi
mov dword [esp + 0x14], eax
push ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
push ebx
push ecx
mov word [esp + 0x28], ax
call fcn.004038d3
add esp, 0x10
test eax, eax
jne 0x4011ce
push esi
call fcn.00403856
mov esi, dword [esp + 0x30]
add esp, 4
lea edx, [esp + 8]
mov ecx, esi
push edx
call fcn.00412f5e
mov dword [esp + 0xc], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x24], bl
call fcn.004131e9
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 0
call fcn.004131e9
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x401250
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
mov ecx, dword [esp + 0xc]
push 0x41acd6
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x130
and ecx, 0xffff
push ebp
push esi
push edi
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebp, eax
test ebp, ebp
je 0x401392
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401392
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401392
mov edx, dword [0x4242e0]
mov dword [esp + 0xc], edx
lea eax, [esp + 0x38]
mov dword [esp + 0x144], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x10]
call fcn.00413326
push str._readtxttemp.txt
lea ecx, [esp + 0x10]
call fcn.00413538
lea ecx, [esp + 0x1c]
call fcn.004025e8
mov edx, dword [esp + 0xc]
push 0
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x14c], 1
call fcn.004026ab
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.00402661
test esi, esi
je 0x40132e
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0xc]
push 0
push 0
push 1
push 0
push 1
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
call fcn.004199cd
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x14]
push 0
push edx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4013af
lea ecx, [esp + 0x1c]
mov byte [esp + 0x144], al
call fcn.00402625
lea ecx, [esp + 0xc]
mov dword [esp + 0x144], 0xffffffff
call fcn.004131e9
mov eax, 0x427d40
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x13c
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
lea eax, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.00412f5e
lea ecx, [esp + 0x14]
push ecx
call fcn.00401130
mov edx, dword [esp + 0x14]
add esp, 8
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x10]
call fcn.004131e9
lea ecx, [esp + 0x1c]
mov byte [esp + 0x144], 0
call fcn.00402625
lea ecx, [esp + 0xc]
mov dword [esp + 0x144], 0xffffffff
call fcn.004131e9
mov eax, esi
jmp 0x401397