joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a010
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov esi, dword [edi + 0x3c]
add esi, edi
lea eax, [esi + 0x50]
push 0x40
mov dword [esp + 0x20], eax
mov eax, dword [eax]
push 0x1000
push eax
push 0
mov dword [esp + 0x20], esi
call dword [0x10007020]
mov ebp, dword [esi + 0x54]
mov ebx, eax
mov eax, dword [0x100e1010]
test eax, eax
jne 0x41a067
push 0x100070f8
push 0x100070ec
call dword [0x1000708c]
push eax
call dword [0x100070a4]
mov dword [0x100e1010], eax
push ebp
push edi
push ebx
call eax
movzx ecx, word [esi + 0x14]
mov ebp, dword [esp + 0x1c]
add esp, 0xc
cmp word [ebp + 6], 0
lea esi, [esi + ecx + 0x18]
mov dword [esp + 0x18], 0
jbe 0x41a130
add esi, 0x10
mov edi, dword [esi - 4]
mov eax, dword [0x100e1014]
mov edx, dword [esi]
mov ebp, dword [esi - 8]
add edi, ebx
test eax, eax
mov dword [esp + 0x14], edx
jne 0x41a0c4
push 0x10007110
push 0x10007100
call dword [0x1000708c]
push eax
call dword [0x100070a4]
mov dword [0x100e1014], eax
push ebp
push edi
call eax
mov eax, dword [esp + 0x14]
cmp ebp, eax
mov dword [esp + 0x14], ebp
jl 0x41a0d8
mov dword [esp + 0x14], eax
mov ebp, dword [esi + 4]
mov eax, dword [0x100e1010]
add ebp, dword [esp + 0x24]
test eax, eax
jne 0x41a104
push 0x100070f8
push 0x100070ec
call dword [0x1000708c]
push eax
call dword [0x100070a4]
mov dword [0x100e1010], eax
mov ecx, dword [esp + 0x14]
push ecx
push ebp
push edi
call eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
movzx ecx, word [edx + 6]
add eax, 1
add esp, 0xc
add esi, 0x28
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x41a091
mov ebp, edx
mov eax, dword [ebp + 0xa4]
mov edi, dword [ebp + 0xa0]
mov esi, ebx
sub esi, dword [ebp + 0x34]
add edi, ebx
test eax, eax
mov dword [esp + 0x18], eax
mov edx, edi
jle 0x41a18c
lea ecx, [ecx]
mov eax, dword [edx + 4]
sub eax, 8
shr eax, 1
test eax, eax
lea ecx, [edx + 8]
jle 0x41a182
mov dword [esp + 0x24], eax
movzx eax, word [ecx]
test eax, 0xf000
je 0x41a178
and eax, 0xfff
add eax, dword [edx]
add eax, ebx
add dword [eax], esi
add ecx, 2
sub dword [esp + 0x24], 1
jne 0x41a163
mov edx, ecx
sub ecx, edi
cmp ecx, dword [esp + 0x18]
jl 0x41a150
mov edi, dword [ebp + 0x80]
mov eax, dword [edi + ebx + 0xc]
add edi, ebx
test eax, eax
je 0x41a1f1
lea esp, [esp]
add eax, ebx
push eax
call dword [0x10007050]
cmp dword [edi + 4], 0
mov ebp, eax
jne 0x41a1b6
mov esi, dword [edi + 0x10]
jmp 0x41a1b8
mov esi, dword [edi]
add esi, ebx
cmp dword [esi], 0
je 0x41a1e3
nop
mov eax, dword [esi]
test eax, eax
jns 0x41a1cd
and eax, 0xffff
jmp 0x41a1d1
lea eax, [eax + ebx + 2]
push eax
push ebp
call dword [0x100070a4]
mov dword [esi], eax
add esi, 4
cmp dword [esi], 0
jne 0x41a1c0
mov eax, dword [edi + 0x20]
add edi, 0x14
test eax, eax
jne 0x41a1a0
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
push eax
push ebx
call dword [0x10007094]
push eax
call dword [0x10007098]
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x41a222
lea esi, [eax + ebx]
test esi, esi
je 0x41a222
push 0
push 1
push ebx
call esi
push 0
push 2
push ebx
call esi
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x10
ret
Function at 0x41d390
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 8], 1
push 0x10007f98
push 0x10007fa8
call dword [0x1000709c]
push eax
call dword [0x100070a4]
mov dword [0x100e1224], eax
push 0x10007fbc
push 0x10007fcc
call dword [0x1000709c]
push eax
call dword [0x100070a4]
mov dword [0x100e1220], eax
push 0x10007fe0
push 0x10007ff4
call dword [0x1000709c]
push eax
call dword [0x100070a4]
mov dword [0x100e121c], eax
push 0x10008008
push 0x10008014
call dword [0x1000709c]
push eax
call dword [0x100070a4]
mov dword [0x100e1218], eax
push 0x10008028
push 0x10008038
call dword [0x1000709c]
push eax
call dword [0x100070a4]
mov dword [0x100e1258], eax
push 0x10008054
push 0x10008064
call dword [0x1000709c]
push eax
call dword [0x100070a4]
mov dword [0x100e1254], eax
push 0
call dword [0x1000709c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x10], 0x2e
mov byte [ebp - 0xf], 0x62
mov byte [ebp - 0xe], 0x78
mov byte [ebp - 0xd], 0x70
mov byte [ebp - 0xc], 0x63
mov byte [ebp - 0xb], 0x6b
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], 0
jmp 0x41d4b1
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0x20], edx
jge 0x41d516
mov eax, dword [ebp - 0x20]
imul eax, eax, 0x28
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
push 8
lea ecx, [ebp - 0x2c]
push ecx
call dword [0x100e1224]
push 8
mov edx, dword [ebp - 0x24]
push edx
lea eax, [ebp - 0x2c]
push eax
call dword [0x100e1220]
push 8
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x10]
push edx
call dword [0x100e121c]
cmp eax, 8
jne 0x41d514
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + 0xc]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
push edx
call fcn.0041c3f0
mov dword [ebp - 8], eax
jmp 0x41d516
jmp 0x41d4a8
mov esp, ebp
pop ebp
ret
Function at 0x4394b0
Capabilities:
Inspect section memory permissions
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [edi], 0x100b081c
lea esi, [edi + 4]
push 0x100
push ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], 0xff
call fcn.0043efa0
mov dword [esi], eax
mov ecx, 0x20
mov dword [esi + 4], ebx
add esp, 8
mov byte [eax], bl
mov eax, 1
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xac], ecx
push 0x100b2e47
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0x10000
mov dword [esp + 0x24], 0x100b2ff8
mov dword [esp + 0x28], 0x20000
mov dword [esp + 0x2c], 0x100b2fe8
mov dword [esp + 0x30], 0x100000
mov dword [esp + 0x34], 0x100b2fdc
mov dword [esp + 0x38], 0x40000
mov dword [esp + 0x3c], 0x100b2fd0
mov dword [esp + 0x40], 0x80000
mov dword [esp + 0x44], 0x100b2fc4
mov dword [esp + 0x48], 0x80000000
mov dword [esp + 0x4c], 0x100b2fb4
mov dword [esp + 0x50], 0x40000000
mov dword [esp + 0x54], 0x100b2fa4
mov dword [esp + 0x58], 0x20000000
mov dword [esp + 0x5c], 0x100b2f94
mov dword [esp + 0x60], 0x10000000
mov dword [esp + 0x64], 0x100b2f88
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], 0x100b2f78
mov dword [esp + 0x70], 0x80
mov dword [esp + 0x74], 0x100b2f60
mov dword [esp + 0x78], 8
mov dword [esp + 0x7c], 0x100b2f50
mov dword [esp + 0x80], 2
mov dword [esp + 0x84], 0x100b2f40
mov dword [esp + 0x88], 0x100
mov dword [esp + 0x8c], 0x100b2f28
mov dword [esp + 0x90], 0x10
mov dword [esp + 0x94], 0x100b2f18
mov dword [esp + 0x98], 4
mov dword [esp + 0x9c], 0x100b2f04
mov dword [esp + 0xa4], 0x100b2ef4
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], 0x100b2ee0
mov dword [esp + 0xb4], 0x100b2ed0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.00424640
mov ebp, dword [esp + 0x10]
push ebp
mov ecx, esi
call fcn.00424640
cmp ebp, ebx
je 0x43966f
push ebp
call fcn.0043f000
add esp, 4
xor ebp, ebp
mov eax, dword [esp + ebp*8 + 0x1c]
test dword [esp + 0x120], eax
je 0x4396a4
not eax
and dword [esp + 0x120], eax
cmp dword [edi + 8], ebx
je 0x439698
push 0x100b2ecc
mov ecx, esi
call fcn.00424470
mov eax, dword [esp + ebp*8 + 0x20]
push eax
mov ecx, esi
call fcn.00424470
add ebp, 1
cmp ebp, 0x13
jb 0x439671
cmp dword [edi + 8], ebx
jne 0x4396f3
push 0x100b2ec4
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.00424640
mov ebp, dword [esp + 0x10]
push ebp
mov ecx, esi
call fcn.00424640
cmp ebp, ebx
je 0x43972f
push ebp
call fcn.0043f000
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4
mov eax, dword [esp + 0x120]
cmp eax, ebx
je 0x43972f
push eax
lea ecx, [esp + 0x20]
push 0x100b2ebc
push ecx
call dword [0x100b0254]
add esp, 0xc
cmp dword [edi + 8], ebx
je 0x439723
push 0x100b2ecc
mov ecx, esi
call fcn.00424470
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.00424470
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4
Function at 0x439c80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x17c
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [edi], 0x100b081c
lea esi, [edi + 4]
push 0x100
push ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], 0xff
call fcn.0043efa0
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], ebx
push 0x100b2e47
lea ecx, [esp + 0x14]
mov byte [eax], bl
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x100b326c
mov dword [esp + 0x28], 0x40
mov dword [esp + 0x2c], 0x100b3254
mov dword [esp + 0x30], 2
mov dword [esp + 0x34], 0x100b3240
mov dword [esp + 0x38], 4
mov dword [esp + 0x3c], 0x100b3228
mov dword [esp + 0x40], 0x800
mov dword [esp + 0x44], 0x100b3214
mov dword [esp + 0x48], 8
mov dword [esp + 0x4c], 0x100b31f4
mov dword [esp + 0x50], 0x10
mov dword [esp + 0x54], 0x100b31d8
mov dword [esp + 0x58], 0x20
mov dword [esp + 0x5c], 0x100b31b8
mov dword [esp + 0x60], 0x80
mov dword [esp + 0x64], 0x100b319c
mov dword [esp + 0x68], 0x100
mov dword [esp + 0x6c], 0x100b3180
mov dword [esp + 0x70], 0x200
mov dword [esp + 0x74], 0x100b3168
mov dword [esp + 0x78], 0x1000
mov dword [esp + 0x7c], 0x100b3150
mov dword [esp + 0x80], 0x2000
mov dword [esp + 0x84], 0x100b3138
mov dword [esp + 0x88], 0x4000
mov dword [esp + 0x8c], 0x100b311c
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.00424640
mov ebp, dword [esp + 0x10]
push ebp
mov ecx, esi
call fcn.00424640
cmp ebp, ebx
je 0x439dd7
push ebp
call fcn.0043f000
add esp, 4
mov ebx, dword [esp + 0x190]
xor ebp, ebp
mov eax, dword [esp + ebp*8 + 0x1c]
test ebx, eax
je 0x439e0a
not eax
and ebx, eax
cmp dword [edi + 8], 0
je 0x439dfe
push 0x100b2ecc
mov ecx, esi
call fcn.00424470
mov eax, dword [esp + ebp*8 + 0x20]
push eax
mov ecx, esi
call fcn.00424470
add ebp, 1
cmp ebp, 0xe
jb 0x439de0
xor ebp, ebp
cmp dword [edi + 8], ebp
jne 0x439e5b
push 0x100b2ec4
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call fcn.00424640
mov ebx, dword [esp + 0x10]
push ebx
mov ecx, esi
call fcn.00424640
cmp ebx, ebp
je 0x439e96
push ebx
call fcn.0043f000
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x17c
ret 4
cmp ebx, ebp
je 0x439e96
push ebx
lea ecx, [esp + 0x90]
push 0x100b2ebc
push ecx
call dword [0x100b0254]
add esp, 0xc
cmp dword [edi + 8], ebp
je 0x439e87
push 0x100b2ecc
mov ecx, esi
call fcn.00424470
lea edx, [esp + 0x8c]
push edx
mov ecx, esi
call fcn.00424470
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x17c
ret 4
Function at 0x447120
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x10], ebx
je 0x44724d
mov ecx, dword [edi + 0x3c]
mov esi, dword [ecx + edi + 0x78]
add ecx, edi
add esi, edi
cmp dword [esi + 0x18], ebx
mov dword [esp + 0x18], ecx
jbe 0x44724d
mov ebp, dword [esp + 0x1c]
mov eax, dword [esi + 0x20]
lea edx, [eax + ebx*4]
mov eax, dword [edx + edi]
add eax, edi
test eax, 0xffff0000
je 0x447182
test ebp, 0xffff0000
je 0x447182
push ebp
push eax
call dword [0x100b01ac]
mov ecx, dword [esp + 0x18]
neg eax
sbb eax, eax
add eax, 1
jmp 0x44718b
xor edx, edx
cmp eax, ebp
sete dl
mov eax, edx
test eax, eax
jne 0x4471a1
add ebx, 1
cmp ebx, dword [esi + 0x18]
jb 0x447153
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esi + 0x24]
lea edx, [eax + ebx*2]
movzx eax, word [edx + edi]
mov edx, dword [esi + 0x1c]
lea eax, [edx + eax*4]
mov ebx, dword [eax + edi]
add ebx, edi
cmp ebx, esi
jb 0x447249
mov ecx, dword [ecx + 0x7c]
add ecx, esi
cmp ebx, ecx
ja 0x447249
xor ecx, ecx
cmp byte [ebx], cl
mov eax, ebx
je 0x4471de
add eax, 1
add ecx, 1
cmp byte [eax], 0
jne 0x4471d3
lea esi, [ecx + 1]
xor edi, edi
test esi, esi
jbe 0x4471f2
push esi
call fcn.0043f050
add esp, 4
mov edi, eax
push esi
push ebx
push edi
call fcn.0043ef30
add esp, 0xc
cmp byte [edi], 0
mov esi, edi
je 0x447211
cmp byte [esi], 0x2e
je 0x447222
add esi, 1
cmp byte [esi], 0
jne 0x447204
push edi
call fcn.0043f000
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push edi
mov byte [esi], 0
call dword [0x100b00d4]
add esi, 1
push esi
push eax
call fcn.00447120
push edi
mov esi, eax
call fcn.0043f000
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x46b910
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
mov dx, word [eax]
shr dx, 1
push esi
movzx esi, dx
xor ecx, ecx
test si, si
push edi
mov word [esp + 8], 0x5c
mov word [esp + 0xa], 0x2f
mov word [esp + 0xc], 0x3a
mov word [esp + 0xe], 0x2a
mov word [esp + 0x10], 0x3f
mov word [esp + 0x12], 0x22
mov word [esp + 0x14], 0x3c
mov word [esp + 0x16], 0x3e
mov word [esp + 0x18], 0x7c
jbe 0x46b997
mov edi, dword [eax + 4]
jmp 0x46b970
movzx edx, cx
movzx edx, word [edi + edx*2]
xor eax, eax
lea esp, [esp]
cmp dx, word [esp + eax*2 + 8]
je 0x46b9a2
add eax, 1
cmp eax, 9
jb 0x46b980
add ecx, 1
cmp cx, si
jb 0x46b970
pop edi
mov eax, 1
pop esi
add esp, 0x14
ret
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
Function at 0x41382f
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0x416e98
push 0x4139c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x41b9e4], 0xffffffff
or dword [0x41b9e8], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4199c4]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x4199c0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41b9e0], eax
call fcn.004139bb
cmp dword [0x419780], ebx
jne 0x4138b2
push 0x4139b8
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.004139a6
push 0x419050
push 0x41904c
call sub.MSVCRT.dll__initterm
mov eax, dword [0x4199bc]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push dword [0x4199b8]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x419048
push section..data
call sub.MSVCRT.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x413945
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x413919
cmp al, 0x22
jne 0x41390b
cmp byte [esi], 0x22
jne 0x413922
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x41392c
cmp al, 0x20
jbe 0x41391e
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x413950
movzx eax, word [ebp - 0x2c]
jmp 0x413953
cmp byte [esi], 0x20
jbe 0x413922
inc esi
mov dword [ebp - 0x74], esi
jmp 0x413945
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x78], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x10008e73
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10008eb2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10008eb2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10008eb2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10008eb2
cmp dword [ecx + 0x74], 0xe
jbe 0x10008eb2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000bb2f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000bbcc
push ebx
push esi
call fcn.1000baf8
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000ba8c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000bb79
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000bbcb
push edi
push eax
call fcn.1000caea
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000bb99
call fcn.1000a5d4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000bbca
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000ba8c
add esp, 0x20
test eax, eax
jne 0x1000bbb8
push edi
call fcn.1000a5d4
jmp 0x1000bbc0
push ebx
call fcn.1000a5d4
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000be39
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10013668
push 0x10013660
push str.FlsAlloc
push 0x1f
call fcn.1000bd55
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000be6d
push dword [ebp + 8]
mov ecx, esi
call dword [0x10012150]
call esi
jmp 0x1000be73
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000beb7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10013678
push 0x10013670
push str.FlsGetValue
push 0x21
call fcn.1000bd55
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000beee
push dword [ebp + 8]
mov ecx, esi
call dword [0x10012150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000bef6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10013680
push 0x10013678
push str.FlsSetValue
push 0x22
call fcn.1000bd55
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000bf30
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10012150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100115b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100115dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100115dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40d5b8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040803b
mov dword [ebp - 0x14], eax
cmp dword [0x430d40], esi
jne 0x40d6ab
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d638
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d78b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d78b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d78b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x430d40], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x430d44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x430d48], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x430d50], eax
test eax, eax
je 0x40d6a8
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x430d4c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d6d0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d6c3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d6e5
push 4
pop eax
jmp 0x40d78d
cmp dword [ebp - 0x14], esi
je 0x40d6e5
push dword [0x430d40]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d6ca
mov eax, dword [0x430d4c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d743
cmp dword [0x430d50], edi
je 0x40d743
push eax
call ebx
push dword [0x430d50]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d743
test eax, eax
je 0x40d743
call ecx
test eax, eax
je 0x40d738
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d738
test byte [ebp - 8], 1
jne 0x40d743
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d773
mov eax, dword [0x430d44]
cmp eax, edi
je 0x40d770
push eax
call ebx
test eax, eax
je 0x40d770
call eax
mov esi, eax
test esi, esi
je 0x40d770
mov eax, dword [0x430d48]
cmp eax, edi
je 0x40d770
push eax
call ebx
test eax, eax
je 0x40d770
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x430d40]
call ebx
test eax, eax
je 0x40d78b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d78d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040433c
mov esp, ebp
pop ebp
ret
Function at 0x404b20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x404b4b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405420
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
call fcn.004061b0
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x404bca
jg 0x404b72
test esi, esi
je 0x404bca
test ecx, ecx
jl 0x404bc5
jg 0x404b7c
test eax, eax
je 0x404bc5
cmp edi, ecx
jg 0x404b90
jl 0x404b86
cmp esi, eax
jae 0x404b90
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
mov ecx, ebx
call fcn.00406280
push eax
call fcn.004017d0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, ecx
sub esi, ecx
mov dword [esp + 0x10], eax
sbb edi, dword [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.004061e0
mov eax, dword [esp + 0x10]
jmp 0x404bcd
mov eax, dword [ebp + 8]
jmp 0x404bd7
mov eax, dword [ebp + 8]
test edi, edi
jl 0x404bf0
jg 0x404bd7
test esi, esi
je 0x404bf0
mov ecx, dword [ebx + 0x4c]
test ecx, ecx
je 0x404bf0
push ecx
push esi
push 1
push eax
call fcn.004210a5
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc